aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/forcedeth.c
diff options
context:
space:
mode:
authorSzymon Janc <szymon@janc.net.pl>2010-11-27 03:39:48 -0500
committerDavid S. Miller <davem@davemloft.net>2010-11-28 21:06:59 -0500
commitde855b992d75e49816eb09231764e7a63a4f555d (patch)
treedd9fb563644758f88c70fa5b0a6970b803a5476e /drivers/net/forcedeth.c
parent34cf97eb255b09751f1eb1b5573813e9ea3fe21f (diff)
forcedeth: use usleep_range not msleep for small sleeps
Signed-off-by: Szymon Janc <szymon@janc.net.pl> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/forcedeth.c')
-rw-r--r--drivers/net/forcedeth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/forcedeth.c b/drivers/net/forcedeth.c
index 2f092d75d78e..2fd1ae9e13b5 100644
--- a/drivers/net/forcedeth.c
+++ b/drivers/net/forcedeth.c
@@ -1178,7 +1178,7 @@ static int phy_reset(struct net_device *dev, u32 bmcr_setup)
1178 1178
1179 /* must wait till reset is deasserted */ 1179 /* must wait till reset is deasserted */
1180 while (miicontrol & BMCR_RESET) { 1180 while (miicontrol & BMCR_RESET) {
1181 msleep(10); 1181 usleep_range(10000, 20000);
1182 miicontrol = mii_rw(dev, np->phyaddr, MII_BMCR, MII_READ); 1182 miicontrol = mii_rw(dev, np->phyaddr, MII_BMCR, MII_READ);
1183 /* FIXME: 100 tries seem excessive */ 1183 /* FIXME: 100 tries seem excessive */
1184 if (tries++ > 100) 1184 if (tries++ > 100)