Re: [PATCH net v8 1/4] net: usb: lan78xx: register the PHY interrupt with the MDIO bus

From: Andrew Lunn

Date: Thu Sep 17 2026 - 22:06:54 EST


> - /* if phyirq is not set, use polling mode in phylib */
> if (dev->domain_data.phyirq > 0)
> - phydev->irq = dev->domain_data.phyirq;
> - else
> - phydev->irq = PHY_POLL;
> + dev->mdiobus->irq[phydev->mdio.addr] = dev->domain_data.phyirq;
> +
> + phydev->irq = dev->mdiobus->irq[phydev->mdio.addr];

This line is redundant, given how phylib works.

> netdev_dbg(dev->net, "phydev->irq = %d\n", phydev->irq);

So maybe change this line?

Andrew