net: phy: at803x: replace msleep(1) with usleep_range
Subsystems (3)
PATCH 1/1 net: phy: at803x: replace msleep(1) with usleep_range
Replace msleep(1) with usleep_range as suggested by timers-howto guide.
Signed-off-by Christian Marangi <[email protected]>
--- drivers/net/phy/at803x.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/net/phy/at803x.c +3 -3
@@ -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 ; }
Signature · 1 line
2.40.1
Quoted 3 lines · Christian Marangi
Replace msleep(1) with
usleep_rangeas suggested by timers-howto guide.Signed-off-by Christian Marangi <[email protected]>
Reviewed-by Andrew Lunn <[email protected]>
Andrew
This patch was applied to netdev/net-next.git (main) by Paolo Abeni <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Paolo Abeni <[email protected]>:
Quoted 6 lines · On Mon, 18 Dec 2023 00:25:08 +0100 you wrote:
Replace msleep(1) with
usleep_rangeas suggested by timers-howto guide.Signed-off-by Christian Marangi <[email protected]>--- drivers/net/phy/at803x.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
Here is the summary with links:
- [net-next] net: phy: at803x: replace msleep(1) with usleep_range
https://git.kernel.org/netdev/net-next/c/3ab5720881a9
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html