aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/ethoc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/ethoc.c b/drivers/net/ethoc.c
index e5c2f5b1d439..1681f081ff6f 100644
--- 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)
613 613
614 while (time_before(jiffies, timeout)) { 614 while (time_before(jiffies, timeout)) {
615 u32 stat = ethoc_read(priv, MIISTATUS); 615 u32 stat = ethoc_read(priv, MIISTATUS);
616 if (!(stat & MIISTATUS_BUSY)) 616 if (!(stat & MIISTATUS_BUSY)) {
617 /* reset MII command register */
618 ethoc_write(priv, MIICOMMAND, 0);
617 return 0; 619 return 0;
620 }
618 621
619 schedule(); 622 schedule();
620 } 623 }