On 11/30/26 00:34, Andrew Lunn wrote:
>> 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.
Hi Andrew, Thanks, that's fair. I reviewed all the mdiobus_register(), of_mdiobus_register() and devm_mdiobus_register() callers, and the fallout from returning -EPROBE_DEFER splits into two classes: Correctness: callers that discard the error and fold it into a hard -ENXIO/-ENODEV. Only three do that (lantiq_etop, smsc911x, smsc9420), which are already in the series; the rest propagate the error. Logging: callers that dev_err()/netdev_err()/pr_err() on failure. They still propagate -EPROBE_DEFER, but the message becomes misleading and would spam on each defer. There are about fifty of these across net/dsa, net/mdio, net/ethernet, net/usb and a couple of arch callers, fixed by a mechanical dev_err() -> dev_err_probe(). Two of the links you posted (arc/emac_mdio.c and enetc's OF path) are already dev_err_probe() in the current tree; enetc's internal mdiobus_register() path still needs it. Note that class 2 already mishandles -EPROBE_DEFER today via the reset-GPIO dev_err_probe() path in __mdiobus_register(), so it is a pre-existing cleanup independent of this change. Would you prefer the whole thing as one series, or the core change (__mdiobus_register() defer plus the three correctness fixes) with a separate treewide dev_err_probe() cleanup series? Best regards, Hans