Re: [PATCH net] net: phy: nxp-c45-tja11xx: add remove callback

From: Andrew Lunn
Date: Fri Apr 07 2023 - 14:15:22 EST


> > Do you need to disable interrupts? I suppose the real question is, is
> > it guaranteed phy_disconnect() is called before the driver is removed?
> The MAC driver should call phy_disconnect() when it is removed. Also, the
> user should not be able to remove the PHY driver if is in uses.

That was what i was thinking. But i've never unloaded a PHY driver, so
i've no idea what actually happens.

Andrew