diff options
author | Dejin Zheng <zhengdejin5@gmail.com> | 2020-01-17 16:10:42 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-01-19 16:06:42 +0100 |
commit | 0c58ac1e0155fdbefb976ff2d321d1093b92fe50 (patch) | |
tree | 2455a3788355007723654702d1d049f4413cbbc7 /drivers/net/phy/adin.c | |
parent | Merge branch 'Rate-adaptation-for-Felix-DSA-switch' (diff) | |
download | linux-0c58ac1e0155fdbefb976ff2d321d1093b92fe50.tar.xz linux-0c58ac1e0155fdbefb976ff2d321d1093b92fe50.zip |
net: phy: adin: fix a warning about msleep
found a warning by the following command:
./scripts/checkpatch.pl -f drivers/net/phy/adin.c
WARNING: msleep < 20ms can sleep for up to 20ms; see Documentation/timers/timers-howto.rst
#628: FILE: drivers/net/phy/adin.c:628:
+ msleep(10);
Signed-off-by: Dejin Zheng <zhengdejin5@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/adin.c')
-rw-r--r-- | drivers/net/phy/adin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/phy/adin.c b/drivers/net/phy/adin.c index 1dca3e883df4..c7eabe4382fb 100644 --- a/drivers/net/phy/adin.c +++ b/drivers/net/phy/adin.c @@ -625,7 +625,7 @@ static int adin_soft_reset(struct phy_device *phydev) if (rc < 0) return rc; - msleep(10); + msleep(20); /* If we get a read error something may be wrong */ rc = phy_read_mmd(phydev, MDIO_MMD_VEND1, |