Commit 3ab57208 authored by Christian Marangi's avatar Christian Marangi Committed by Paolo Abeni

net: phy: at803x: replace msleep(1) with usleep_range

Replace msleep(1) with usleep_range as suggested by timers-howto guide.
Signed-off-by: default avatarChristian Marangi <ansuelsmth@gmail.com>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20231217232508.26470-1-ansuelsmth@gmail.comSigned-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent fc9d7264
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment