Skip to content

Commit f821727

Browse files
Saravana Kannangregkh
authored andcommitted
net: mdio: Delete usage of driver_deferred_probe_check_state()
Now that fw_devlink=on by default and fw_devlink supports interrupt properties, the execution will never get to the point where driver_deferred_probe_check_state() is called before the supplier has probed successfully or before deferred probe timeout has expired. So, delete the call and replace it with -ENODEV. Tested-by: Geert Uytterhoeven <[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 24a026f commit f821727

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/net/mdio/fwnode_mdio.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,7 @@ 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 = driver_deferred_probe_check_state(&phy->mdio.dev);
51-
if (rc == -EPROBE_DEFER)
52-
return rc;
50+
rc = -ENODEV;
5351

5452
if (rc > 0) {
5553
phy->irq = rc;

0 commit comments

Comments
 (0)