Skip to content

Commit

Permalink
forcedeth: use usleep_range not msleep for small sleeps
Browse files Browse the repository at this point in the history
Signed-off-by: Szymon Janc <szymon@janc.net.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Szymon Janc authored and David S. Miller committed Nov 29, 2010
1 parent 34cf97e commit de855b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/forcedeth.c
Original file line number Diff line number Diff line change
Expand Up @@ -1178,7 +1178,7 @@ static int phy_reset(struct net_device *dev, u32 bmcr_setup)

/* must wait till reset is deasserted */
while (miicontrol & BMCR_RESET) {
msleep(10);
usleep_range(10000, 20000);
miicontrol = mii_rw(dev, np->phyaddr, MII_BMCR, MII_READ);
/* FIXME: 100 tries seem excessive */
if (tries++ > 100)
Expand Down

0 comments on commit de855b9

Please sign in to comment.