value |= MII_GMAC4_READ;if(readl_poll_timeout(priv->ioaddr + mii_address, v, !(v & MII_BUSY),100,10000))return-EBUSY; writel(value, priv->ioaddr + mii_address);if(readl_poll_timeout(priv->ioaddr + mii_address, v, !(v & MII_BUSY),100,10000))return-EBUSY;/* Read the ...
Use readl_poll_timeout_atomic() instead of open-coding the same operation. As typically no retries are needed, 10 µs is a suitable timeout value. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://lore.kernel.org/r/bce7d0bdd80c800aa150f1868b610b7d94f4cc66.1...
value |= MII_GMAC4_READ;if(readl_poll_timeout(priv->ioaddr + mii_address, v, !(v & MII_BUSY),100,10000))return-EBUSY; writel(value, priv->ioaddr + mii_address);if(readl_poll_timeout(priv->ioaddr + mii_address, v, !(v & MII_BUSY),100,10000))return-EBUSY;/* Read the ...