projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
34cf97e
)
forcedeth: use usleep_range not msleep for small sleeps
author
Szymon Janc
<szymon@janc.net.pl>
Sat, 27 Nov 2010 08:39:48 +0000
(08:39 +0000)
committer
David S. Miller
<davem@davemloft.net>
Mon, 29 Nov 2010 02:06:59 +0000
(18:06 -0800)
Signed-off-by: Szymon Janc <szymon@janc.net.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/forcedeth.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/forcedeth.c
b/drivers/net/forcedeth.c
index 2f092d75d78ee0c5fa2e219417af16f263f6e4f9..2fd1ae9e13b5580234ebd4a6fb80a412d85ae621 100644
(file)
--- 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)
/* must wait till reset is deasserted */
while (miicontrol & BMCR_RESET) {
-
msleep(1
0);
+
usleep_range(10000, 2000
0);
miicontrol = mii_rw(dev, np->phyaddr, MII_BMCR, MII_READ);
/* FIXME: 100 tries seem excessive */
if (tries++ > 100)