Skip to content

Commit cffaf97

Browse files
Saravana Kannangregkh
authored andcommitted
Revert "net: mdio: Delete usage of driver_deferred_probe_check_state()"
This reverts commit f821727. There are a few more issues to fix that have been reported in the thread for the original series [1]. We'll need to fix those before this will work. So, revert it for now. [1] - https://lore.kernel.org/lkml/CAMuHMdWo_wRwV-i_iyTxVnEsf3Th9GBAG+wxUQMQGnw1t2ijTg@mail.gmail.com/ Fixes: f821727 ("net: mdio: Delete usage of driver_deferred_probe_check_state()") Reported-by: Geert Uytterhoeven <[email protected]> Tested-by: Alexander Stein <[email protected]> Reviewed-by: Tony Lindgren <[email protected]> Signed-off-by: Saravana Kannan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 13a8e0f commit cffaf97

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/net/mdio/fwnode_mdio.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ int fwnode_mdiobus_phy_device_register(struct mii_bus *mdio,
4747
* just fall back to poll mode
4848
*/
4949
if (rc == -EPROBE_DEFER)
50-
rc = -ENODEV;
50+
rc = driver_deferred_probe_check_state(&phy->mdio.dev);
51+
if (rc == -EPROBE_DEFER)
52+
return rc;
5153

5254
if (rc > 0) {
5355
phy->irq = rc;

0 commit comments

Comments
 (0)