projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc9d726
)
net: phy: at803x: replace msleep(1) with usleep_range
author
Christian Marangi
<ansuelsmth@gmail.com>
Sun, 17 Dec 2023 23:25:08 +0000
(
00:25
+0100)
committer
Paolo Abeni
<pabeni@redhat.com>
Thu, 21 Dec 2023 12:52:35 +0000
(13:52 +0100)
Replace msleep(1) with usleep_range as suggested by timers-howto guide.
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link:
https://lore.kernel.org/r/20231217232508.26470-1-ansuelsmth@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/phy/at803x.c
patch
|
blob
|
history
diff --git
a/drivers/net/phy/at803x.c
b/drivers/net/phy/at803x.c
index 423cbe4aa8725889af2dcd5b3ac05fe1ec4914fd..d5dc927618ab52f20380452d63bf902b8a8f6aad 100644
(file)
--- a/
drivers/net/phy/at803x.c
+++ b/
drivers/net/phy/at803x.c
@@
-916,9
+916,9
@@
static void at803x_link_change_notify(struct phy_device *phydev)
at803x_context_save(phydev, &context);
phy_device_reset(phydev, 1);
-
msleep(1
);
+
usleep_range(1000, 2000
);
phy_device_reset(phydev, 0);
-
msleep(1
);
+
usleep_range(1000, 2000
);
at803x_context_restore(phydev, &context);
@@
-1733,7
+1733,7
@@
static int qca83xx_resume(struct phy_device *phydev)
if (ret)
return ret;
-
msleep(1
);
+
usleep_range(1000, 2000
);
return 0;
}