Skip to content

Commit 3ab5720

Browse files
AnsuelPaolo Abeni
authored andcommitted
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]> Reviewed-by: Andrew Lunn <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
1 parent fc9d726 commit 3ab5720

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/net/phy/at803x.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -916,9 +916,9 @@ static void at803x_link_change_notify(struct phy_device *phydev)
916916
at803x_context_save(phydev, &context);
917917

918918
phy_device_reset(phydev, 1);
919-
msleep(1);
919+
usleep_range(1000, 2000);
920920
phy_device_reset(phydev, 0);
921-
msleep(1);
921+
usleep_range(1000, 2000);
922922

923923
at803x_context_restore(phydev, &context);
924924

@@ -1733,7 +1733,7 @@ static int qca83xx_resume(struct phy_device *phydev)
17331733
if (ret)
17341734
return ret;
17351735

1736-
msleep(1);
1736+
usleep_range(1000, 2000);
17371737

17381738
return 0;
17391739
}

0 commit comments

Comments
 (0)