From: Dejin Zheng Date: Fri, 17 Jan 2020 15:10:42 +0000 (+0800) Subject: net: phy: adin: fix a warning about msleep X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=0c58ac1e0155fdbefb976ff2d321d1093b92fe50;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: David S. Miller --- 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,