Skip to content

Commit 6c16630

Browse files
Dejin Zhengcommodo
authored andcommitted
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 torvalds#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>
1 parent ba8f531 commit 6c16630

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/phy/adin.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ static int adin_soft_reset(struct phy_device *phydev)
631631
if (rc < 0)
632632
return rc;
633633

634-
msleep(10);
634+
msleep(20);
635635

636636
/* If we get a read error something may be wrong */
637637
rc = phy_read_mmd(phydev, MDIO_MMD_VEND1,

0 commit comments

Comments
 (0)