public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [net-next PATCH] net: phy: at803x: replace msleep(1) with usleep_range
@ 2023-12-17 23:25 Christian Marangi
  2023-12-18  9:46 ` Andrew Lunn
  2023-12-21 15:00 ` patchwork-bot+netdevbpf
  0 siblings, 2 replies; 3+ messages in thread
From: Christian Marangi @ 2023-12-17 23:25 UTC (permalink / raw)
  To: Andrew Lunn, Heiner Kallweit, Russell King, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni, netdev, linux-kernel
  Cc: Christian Marangi

Replace msleep(1) with usleep_range as suggested by timers-howto guide.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
---
 drivers/net/phy/at803x.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/net/phy/at803x.c b/drivers/net/phy/at803x.c
index a7d28848ee93..2b2f0fadaf84 100644
--- 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;
 }
-- 
2.40.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [net-next PATCH] net: phy: at803x: replace msleep(1) with usleep_range
  2023-12-17 23:25 [net-next PATCH] net: phy: at803x: replace msleep(1) with usleep_range Christian Marangi
@ 2023-12-18  9:46 ` Andrew Lunn
  2023-12-21 15:00 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 3+ messages in thread
From: Andrew Lunn @ 2023-12-18  9:46 UTC (permalink / raw)
  To: Christian Marangi
  Cc: Heiner Kallweit, Russell King, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, netdev, linux-kernel

On Mon, Dec 18, 2023 at 12:25:08AM +0100, Christian Marangi wrote:
> 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>

    Andrew

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [net-next PATCH] net: phy: at803x: replace msleep(1) with usleep_range
  2023-12-17 23:25 [net-next PATCH] net: phy: at803x: replace msleep(1) with usleep_range Christian Marangi
  2023-12-18  9:46 ` Andrew Lunn
@ 2023-12-21 15:00 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2023-12-21 15:00 UTC (permalink / raw)
  To: Christian Marangi
  Cc: andrew, hkallweit1, linux, davem, edumazet, kuba, pabeni, netdev,
	linux-kernel

Hello:

This patch was applied to netdev/net-next.git (main)
by Paolo Abeni <pabeni@redhat.com>:

On Mon, 18 Dec 2023 00:25:08 +0100 you wrote:
> Replace msleep(1) with usleep_range as suggested by timers-howto guide.
> 
> Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
> ---
>  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!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-12-21 15:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-17 23:25 [net-next PATCH] net: phy: at803x: replace msleep(1) with usleep_range Christian Marangi
2023-12-18  9:46 ` Andrew Lunn
2023-12-21 15:00 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox