Netdev List
 help / color / mirror / Atom feed
* [PATCH] bfin_mac: Fix MDIO clock frequency
@ 2008-01-29 12:27 Kalle Pokki
  2008-01-29 18:01 ` Bryan Wu
  0 siblings, 1 reply; 3+ messages in thread
From: Kalle Pokki @ 2008-01-29 12:27 UTC (permalink / raw)
  To: netdev, Bryan Wu

The clock divisor is set to all ones at reset.
---
 drivers/net/bfin_mac.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/bfin_mac.c b/drivers/net/bfin_mac.c
index eb97175..c199633 100644
--- a/drivers/net/bfin_mac.c
+++ b/drivers/net/bfin_mac.c
@@ -425,7 +425,7 @@ static int mii_probe(struct net_device *dev)
 
 	/* MDC  = 2.5 MHz */
 	sysctl = bfin_read_EMAC_SYSCTL();
-	sysctl |= SET_MDCDIV(24);
+	sysctl = (sysctl & ~MDCDIV) | SET_MDCDIV(24);
 	bfin_write_EMAC_SYSCTL(sysctl);
 
 	/* search for connect PHY device */
-- 
1.4.4.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-01-29 20:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-29 12:27 [PATCH] bfin_mac: Fix MDIO clock frequency Kalle Pokki
2008-01-29 18:01 ` Bryan Wu
2008-01-29 20:05   ` Kalle Pokki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox