Re: [PATCH 03/17] net: phy: Attach generic PHY drivers through the driver core
From: Leon Romanovsky
Date: Thu Nov 05 2026 - 13:51:56 EST
On Thu, Nov 05, 2026 at 04:33:48PM +0100, Andrew Lunn wrote:
> > + if (err == -EBUSY) {
> > + /* Another bind owns the PHY, so nothing was probed here. */
> > + irq = phydev->irq;
> > + err = -EPROBE_DEFER;
> > + } else if (err == -EAGAIN) {
> > + err = -EPROBE_DEFER;
>
> You cannot return -EPROBE_DEFER here. You are not guaranteed to be in
> the context of a probe. Very likely, you are in the middle of the
> ethernet drives open() call. Both probes happened a long time ago.
You are right, thanks
>
> Andrew