From: Bryan Wu Date: Wed, 30 Jan 2008 08:52:28 +0000 (+0800) Subject: EMAC driver: Fix bug: The clock divisor is set to all ones at reset. X-Git-Tag: v2.6.25-rc1~1065^2~6 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=9dc7f30e3bac329998a2a9bb814bd0abc7cb58e2;p=linux-2.6-omap-h63xx.git EMAC driver: Fix bug: The clock divisor is set to all ones at reset. Signed-off-by: Kalle Pokki Signed-off-by: Bryan Wu Signed-off-by: Jeff Garzik Signed-off-by: David S. Miller --- diff --git a/drivers/net/bfin_mac.c b/drivers/net/bfin_mac.c index 0a17fb48c55..c993a32b3f5 100644 --- a/drivers/net/bfin_mac.c +++ b/drivers/net/bfin_mac.c @@ -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 */