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>
This commit is contained in:
Szymon Janc 2010-11-27 08:39:48 +00:00 committed by David S. Miller
parent 34cf97eb25
commit de855b992d
1 changed files with 1 additions and 1 deletions

View File

@ -1178,7 +1178,7 @@ static int phy_reset(struct net_device *dev, u32 bmcr_setup)
/* must wait till reset is deasserted */ /* must wait till reset is deasserted */
while (miicontrol & BMCR_RESET) { while (miicontrol & BMCR_RESET) {
msleep(10); usleep_range(10000, 20000);
miicontrol = mii_rw(dev, np->phyaddr, MII_BMCR, MII_READ); miicontrol = mii_rw(dev, np->phyaddr, MII_BMCR, MII_READ);
/* FIXME: 100 tries seem excessive */ /* FIXME: 100 tries seem excessive */
if (tries++ > 100) if (tries++ > 100)