Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <ansuelsmth@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20231217232508.26470-1-ansuelsmth@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>

authored by

Christian Marangi and committed by
Paolo Abeni
3ab57208 fc9d7264

+3 -3
+3 -3
drivers/net/phy/at803x.c
··· 916 916 at803x_context_save(phydev, &context); 917 917 918 918 phy_device_reset(phydev, 1); 919 - msleep(1); 919 + usleep_range(1000, 2000); 920 920 phy_device_reset(phydev, 0); 921 - msleep(1); 921 + usleep_range(1000, 2000); 922 922 923 923 at803x_context_restore(phydev, &context); 924 924 ··· 1733 1733 if (ret) 1734 1734 return ret; 1735 1735 1736 - msleep(1); 1736 + usleep_range(1000, 2000); 1737 1737 1738 1738 return 0; 1739 1739 }