projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2cbc8ef
)
ethoc: Clear command buffer after write
author
Jonas Bonn
<jonas@southpole.se>
Fri, 11 Jun 2010 02:47:39 +0000
(
02:47
+0000)
committer
David S. Miller
<davem@davemloft.net>
Fri, 11 Jun 2010 20:28:36 +0000
(13:28 -0700)
This matches what ethoc_mdio_read does and makes the functions
symmetric.
Signed-off-by: Jonas Bonn <jonas@southpole.se>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethoc.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/ethoc.c
b/drivers/net/ethoc.c
index e5c2f5b1d439a3bdebcd45ca7e29c5c17cace120..1681f081ff6f69774be05cdc6991a130272041e1 100644
(file)
--- a/
drivers/net/ethoc.c
+++ b/
drivers/net/ethoc.c
@@
-613,8
+613,11
@@
static int ethoc_mdio_write(struct mii_bus *bus, int phy, int reg, u16 val)
while (time_before(jiffies, timeout)) {
u32 stat = ethoc_read(priv, MIISTATUS);
- if (!(stat & MIISTATUS_BUSY))
+ if (!(stat & MIISTATUS_BUSY)) {
+ /* reset MII command register */
+ ethoc_write(priv, MIICOMMAND, 0);
return 0;
+ }
schedule();
}