net: phy: adin: fix a warning about msleep
authorDejin Zheng <zhengdejin5@gmail.com>
Fri, 17 Jan 2020 15:10:42 +0000 (23:10 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 19 Jan 2020 15:06:42 +0000 (16:06 +0100)
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>
drivers/net/phy/adin.c

index 1dca3e883df4f054e25f039b8d9a78e49be9d553..c7eabe4382fbbe2f07e849c00fc59fab78add66c 100644 (file)
@@ -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,