From: Tim Harvey Date: Wed, 30 Nov 2022 17:42:44 +0000 (-0800) Subject: net: mdio-uclass: scan for dm mdio children on post-bind X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=f54002d774d1cd215a0f12da7a3c06f539ae92ea;p=u-boot.git net: mdio-uclass: scan for dm mdio children on post-bind If a DM_MDIO driver is used we need to scan the subnodes as well. Signed-off-by: Tim Harvey Signed-off-by: Vladimir Oltean Reviewed-by: Ramon Fried Reviewed-by: Fabio Estevam --- diff --git a/net/mdio-uclass.c b/net/mdio-uclass.c index 4401492ca0..d80037d0ac 100644 --- a/net/mdio-uclass.c +++ b/net/mdio-uclass.c @@ -49,7 +49,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 } int dm_mdio_read(struct udevice *mdio_dev, int addr, int devad, int reg)