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

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

Signed-off-by: default avatarKalle Pokki <kalle.pokki@eke.com>
Signed-off-by: default avatarBryan Wu <bryan.wu@analog.com>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6e01d1a4
...@@ -408,7 +408,7 @@ static int mii_probe(struct net_device *dev) ...@@ -408,7 +408,7 @@ static int mii_probe(struct net_device *dev)
mdc_div = ((sclk / MDC_CLK) / 2) - 1; mdc_div = ((sclk / MDC_CLK) / 2) - 1;
sysctl = bfin_read_EMAC_SYSCTL(); sysctl = bfin_read_EMAC_SYSCTL();
sysctl |= SET_MDCDIV(mdc_div); sysctl = (sysctl & ~MDCDIV) | SET_MDCDIV(mdc_div);
bfin_write_EMAC_SYSCTL(sysctl); bfin_write_EMAC_SYSCTL(sysctl);
/* search for connect PHY device */ /* search for connect PHY device */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment