> The phylib change does exactly that: __mdiobus_register() returns
> -EPROBE_DEFER and lets the driver core's existing deferred-probe mechanism
> do the re-probe, rather than spawning any workqueue in phylib or the MAC
> drivers. For the corner cases you raised, I audited the mdiobus_register()
> callers and found three that fold -EPROBE_DEFER into a hard -ENXIO:
> lantiq_etop, smsc911x and smsc9420; the 4-patch series fixes those alongside
> the __mdiobus_register() defer.
https://elixir.bootlin.com/linux/v7.3.4/source/arch/powerpc/platforms/pasemi/gpio_mdio.c#L244
The error message is no longer correct.
https://elixir.bootlin.com/linux/v7.3.4/source/drivers/net/dsa/mv88e6xxx/chip.c#L3896
Same problem,
https://elixir.bootlin.com/linux/v7.3.4/source/drivers/net/ethernet/altera/altera_tse_main.c#L158
https://elixir.bootlin.com/linux/v7.3.4/source/drivers/net/ethernet/arc/emac_mdio.c#L173
https://elixir.bootlin.com/linux/v7.3.4/source/drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c#L236
https://elixir.bootlin.com/linux/v7.3.4/source/drivers/net/ethernet/freescale/enetc/enetc_pf_common.c#L293
I will let you review all the calls to of_mdiobus_register().
Andrew