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

Commit 9dc7f30e authored by Bryan Wu's avatar Bryan Wu Committed by David S. Miller
Browse files

EMAC driver: Fix bug: The clock divisor is set to all ones at reset.

parent 6e01d1a4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -408,7 +408,7 @@ static int mii_probe(struct net_device *dev)
	mdc_div = ((sclk / MDC_CLK) / 2) - 1;

	sysctl = bfin_read_EMAC_SYSCTL();
	sysctl |= SET_MDCDIV(mdc_div);
	sysctl = (sysctl & ~MDCDIV) | SET_MDCDIV(mdc_div);
	bfin_write_EMAC_SYSCTL(sysctl);

	/* search for connect PHY device */