History

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);

Dejin Zheng committed 6 years ago

Commit 0c58ac11 parent d82f2871 file · +1 −1Browse files

Unified · Split

drivers/net/phy/adin.c+1−1
@@ -625,7 +625,7 @@ static int adin_soft_reset(struct phy_device *phydev) · 624 unmodified lines
625625 if (rc < 0)
626626 return rc;
627627
628− msleep(10);
628+ msleep(20);
629629
630630 /* If we get a read error something may be wrong */
631631 rc = phy_read_mmd(phydev, MDIO_MMD_VEND1,