/* Turn off the autopoll and wait for it to disable on the chip  */
static void safe_disable_mii_autopoll(struct mac_regs __iomem *regs)
/* Turn off the autopoll and wait for it to disable on the chip  */
static void safe_disable_mii_autopoll(struct mac_regs __iomem *regs)
{
	u16 ww;
	writeb(0, &regs->MIICR);
	for (ww = 0; ww < W_MAX_TIMEOUT; ww++) {
		udelay(1);
		if (BYTE_REG_BITS_IS_ON(MIISR_MIDLE, &regs->MIISR))
			break;
	}
}