Re: [PATCH] net: fec: defer probe if PHY on external MDIO bus is not available

From: Andrew Lunn
Date: Fri Oct 22 2021 - 08:56:59 EST


> Hmm, lots of network drivers? I tried to find an example, but all
> drivers that generate -EPROBE_DEFER for missing PHYs at all don't have
> an internal MDIO bus and thus avoid the circular dependency.

Try drivers/net/dsa.

These often have mdio busses which get registered and then
unregistered. There are also IRQ drivers which do the same.

Andrew