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 <geert@linux-m68k.org> Tested-by: Alexander Stein <alexander.stein@ew.tq-group.com> Reviewed-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Saravana Kannan <saravanak@google.com> Link: https://lore.kernel.org/r/20220819221616.2107893-3-saravanak@google.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 13a8e0f commit cffaf97

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

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)