If a DM_MDIO driver is used we need to scan the subnodes as well.
Signed-off-by: Tim Harvey <[email protected]>
Signed-off-by: Vladimir Oltean <[email protected]>
---
net/mdio-uclass.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/net/mdio-uclass.c b/net/mdio-uclass.c
index e74e34f78f9c..190cb08b31d8 100644
--- a/net/mdio-uclass.c
+++ b/net/mdio-uclass.c
@@ -59,7 +59,11 @@ static int dm_mdio_post_bind(struct udevice *dev)
return -EINVAL;
}
+#if CONFIG_IS_ENABLED(OF_REAL)
+ return dm_scan_fdt_dev(dev);
+#else
return 0;
+#endif
}
/*
--
2.17.1