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...
示例1: micveth_clientpoll ▲点赞 6▼ staticvoidmicveth_clientpoll(struct work_struct *work){micveth_info_t*veth_info;uint32_ttransRingHi;uint32_ttransRingLo;uint32_tscratch14 =0;uint32_tscratch15 =0;intbd;staticintenter =0;if(enter ==0) { printk("micveth is polling\n"); enter...