On Tue, Dec 01, 2026 at 12:19:54PM +0800, Hans Zhang wrote:
> Hi sashiko,
>
>
> Thank you for the review. The High issues are valid.
>
> v2 will:
> - drop the smsc9420 change, since its mdiobus_register() call is in
> ndo_open rather than a probe path, and the v1 version could return
> success after a PHY probe failure;
You need to be careful here. What context is open called in? Can you
return EPROBE_DEFER here? Generally no.
What makes this interesting is things like NFS root. You pass on the
kernel command line all the parameters needed to connect to the NFS
server. Deep within netdev_register(), generally called from probe, it
can open the device, and start sending packets in order to connect to
the NFS server. So the device is alive and running before
netdev_register() even returns.
If probe was called in async mode, can open be called in async mode,
resulting in an EPROBE_DEFER from mdiobus_register? What happens then?
Does it all correctly unwind and the probe is tried again later in
sync mode?
Andrew