aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorTim Harvey2021-03-25 17:07:37 -0700
committerTom Rini2021-04-20 07:31:12 -0400
commit935e0b0ecd2d2303fca12aa0c55d2af1783e61dc (patch)
tree47a562098d82a6f4d61b4b418bd152a5050b6f5f /drivers
parent98a8180dcaf55bd61758435d1fe3cfa27588dab8 (diff)
net: octeontx: smi: fix mii probe
The fdt node offset is apparently not set properly when probed causing no MDIO busses to be found. Fix this by obtaining the offset. Signed-off-by: Tim Harvey <tharvey@gateworks.com> Reviewed-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/octeontx/smi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/octeontx/smi.c b/drivers/net/octeontx/smi.c
index 91dcd05e4b3..27f4423c6ac 100644
--- a/drivers/net/octeontx/smi.c
+++ b/drivers/net/octeontx/smi.c
@@ -325,6 +325,8 @@ int octeontx_smi_probe(struct udevice *dev)
return -1;
}
+ node = fdt_node_offset_by_compatible(gd->fdt_blob, -1,
+ "cavium,thunder-8890-mdio-nexus");
fdt_for_each_subnode(subnode, gd->fdt_blob, node) {
ret = fdt_node_check_compatible(gd->fdt_blob, subnode,
"cavium,thunder-8890-mdio");