Re: [PATCH net-next 2/3] net: ethernet: oa_tc6: deliver the PHY interrupt to phylib
From: Andrew Lunn
Date: Tue Sep 01 2026 - 20:31:50 EST
> @@ -600,6 +642,16 @@ static int oa_tc6_phy_init(struct oa_tc6 *tc6)
> return -ENODEV;
> }
>
> + ret = oa_tc6_phy_irq_setup(tc6);
> + if (ret) {
> + oa_tc6_mdiobus_unregister(tc6);
> + return ret;
> + }
> +
> + /* Deliver the PHY interrupt through the nested virtual IRQ. Set before
> + * phy_connect_direct() so phylib enters interrupt mode.
> + */
> + tc6->phydev->irq = tc6->phy_virq;
I don't know how messy it will be, but it is better to set
mii_bus->irq[] to the interrupt number. phy_device_create() will then
copy it into phydev->irq.
Andrew