mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 06:00:43 +00:00
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>
This commit is contained in:
parent
98a8180dca
commit
935e0b0ecd
1 changed files with 2 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue