Re: [PATCH net-next v4 8/9] net: phy: smsc: use phy_read_poll_timeout() to simplify the code

From: Andrew Lunn
Date: Sun Mar 22 2020 - 11:39:52 EST


> @@ -125,15 +123,11 @@ static int lan87xx_read_status(struct phy_device *phydev)
> return rc;
>
> /* Wait max 640 ms to detect energy */
> - for (i = 0; i < 64; i++) {
> - /* Sleep to allow link test pulses to be sent */
> - msleep(10);

Another example where you should add an msleep() before
phy_read_poll_timeout().

Andrew