Skip to content

Commit

Permalink
m68knommu: correct the mii calculations for 532x ColdFire FEC
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Waddel <Matt.Waddel@freescale.com>
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
  • Loading branch information
Matt Waddel authored and Greg Ungerer committed Jan 27, 2009
1 parent d4732d3 commit b9d57f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/fec.c
Original file line number Diff line number Diff line change
Expand Up @@ -1698,7 +1698,7 @@ static void __inline__ fec_set_mii(struct net_device *dev, struct fec_enet_priva
/*
* Set MII speed to 2.5 MHz
*/
fep->phy_speed = ((((MCF_CLK / 2) / (2500000 / 10)) + 5) / 10) * 2;
fep->phy_speed = (MCF_CLK / 3) / (2500000 * 2 ) * 2;
fecp->fec_mii_speed = fep->phy_speed;

fec_restart(dev, 0);
Expand Down

0 comments on commit b9d57f9

Please sign in to comment.