Skip to content

Commit 6fecfd3

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> (cherry picked from commit 6c16630)
1 parent abf3cd0 commit 6fecfd3

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
@@ -625,7 +625,7 @@ static int adin_soft_reset(struct phy_device *phydev)
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,

0 commit comments

Comments
 (0)