1 From 3ab5720881a924fb6405d9e6a3b09f1026467c47 Mon Sep 17 00:00:00 2001
2 From: Christian Marangi <ansuelsmth@gmail.com>
3 Date: Mon, 18 Dec 2023 00:25:08 +0100
4 Subject: [PATCH 2/2] net: phy: at803x: replace msleep(1) with usleep_range
6 Replace msleep(1) with usleep_range as suggested by timers-howto guide.
8 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
9 Reviewed-by: Andrew Lunn <andrew@lunn.ch>
10 Link: https://lore.kernel.org/r/20231217232508.26470-1-ansuelsmth@gmail.com
11 Signed-off-by: Paolo Abeni <pabeni@redhat.com>
13 drivers/net/phy/at803x.c | 6 +++---
14 1 file changed, 3 insertions(+), 3 deletions(-)
16 --- a/drivers/net/phy/at803x.c
17 +++ b/drivers/net/phy/at803x.c
18 @@ -916,9 +916,9 @@ static void at803x_link_change_notify(st
19 at803x_context_save(phydev, &context);
21 phy_device_reset(phydev, 1);
23 + usleep_range(1000, 2000);
24 phy_device_reset(phydev, 0);
26 + usleep_range(1000, 2000);
28 at803x_context_restore(phydev, &context);
30 @@ -1733,7 +1733,7 @@ static int qca83xx_resume(struct phy_dev
35 + usleep_range(1000, 2000);