diff options
author | Tim Harvey <tharvey@gateworks.com> | 2022-11-30 20:42:44 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-02-02 22:22:08 +0300 |
commit | f54002d774d1cd215a0f12da7a3c06f539ae92ea (patch) | |
tree | d6e3694100b99894bceabd25fdc86d7216ec100d /net/mdio-uclass.c | |
parent | 9918b25d21db243352fc482671cafa10260b7887 (diff) | |
download | u-boot-f54002d774d1cd215a0f12da7a3c06f539ae92ea.tar.xz |
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 <tharvey@gateworks.com>
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
Reviewed-by: Fabio Estevam <festevam@denx.de>
Diffstat (limited to 'net/mdio-uclass.c')
-rw-r--r-- | net/mdio-uclass.c | 4 |
1 files changed, 4 insertions, 0 deletions
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) |