projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e01d1a
)
EMAC driver: Fix bug: The clock divisor is set to all ones at reset.
author
Bryan Wu
<bryan.wu@analog.com>
Wed, 30 Jan 2008 08:52:28 +0000
(16:52 +0800)
committer
David S. Miller
<davem@davemloft.net>
Sun, 3 Feb 2008 12:28:51 +0000
(
04:28
-0800)
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>
drivers/net/bfin_mac.c
patch
|
blob
|
history
diff --git
a/drivers/net/bfin_mac.c
b/drivers/net/bfin_mac.c
index 0a17fb48c55ce51891d842780de244a43c8692ea..c993a32b3f50c1b0389a90ee193aa7bb24e94ba4 100644
(file)
--- 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 */