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);
Unified · Split
| @@ -625,7 +625,7 @@ static int adin_soft_reset(struct phy_device *phydev) · 624 unmodified lines | ||
| 625 | 625 | if (rc < 0) |
| 626 | 626 | return rc; |
| 627 | 627 | |
| 628 | − msleep(10); | |
| 628 | + msleep(20); | |
| 629 | 629 | |
| 630 | 630 | /* If we get a read error something may be wrong */ |
| 631 | 631 | rc = phy_read_mmd(phydev, MDIO_MMD_VEND1, |