Skip to content

Commit

Permalink
EMAC driver: Fix bug: The clock divisor is set to all ones at reset.
Browse files Browse the repository at this point in the history
Signed-off-by: Kalle Pokki <kalle.pokki@eke.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Bryan Wu authored and David S. Miller committed Feb 3, 2008
1 parent 6e01d1a commit 9dc7f30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/bfin_mac.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 9dc7f30

Please sign in to comment.