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

From: Andrew Lunn
Date: Tue Apr 11 2023 - 08:45:17 EST


> Andrew: my understanding is that a connected phy, maintains a reference
> to the relevant driver via phydev->mdio.dev.driver->owner, and such
> reference is dropped by phy_disconnect() via phy_detach().
>
> So remove can invoked only after phy_disconnect
>
> Does the above sounds reasonable/answer your question?

Yes, that does seem logical.

Reviewed-by: Andrew Lunn <andrew@xxxxxxx>

Andrew