提交 de855b99 编写于 作者: S Szymon Janc 提交者: David S. Miller

forcedeth: use usleep_range not msleep for small sleeps

Signed-off-by: NSzymon Janc <szymon@janc.net.pl>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 34cf97eb
...@@ -1178,7 +1178,7 @@ static int phy_reset(struct net_device *dev, u32 bmcr_setup) ...@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册