Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b9d57f94 authored by Matt Waddel's avatar Matt Waddel Committed by Greg Ungerer
Browse files

m68knommu: correct the mii calculations for 532x ColdFire FEC

parent d4732d3c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);