[PATCH 6/6] net: octeontx: smi: fix mii probe

Stefan Roese sr at denx.de
Fri Mar 26 07:48:10 CET 2021


On 26.03.21 01:07, Tim Harvey wrote:
> 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 at gateworks.com>

Reviewed-by: Stefan Roese <sr at denx.de>

Thanks,
Stefan

> ---
>   drivers/net/octeontx/smi.c | 2 ++
>   1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/net/octeontx/smi.c b/drivers/net/octeontx/smi.c
> index 91dcd05e4b..27f4423c6a 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");
> 


Viele Grüße,
Stefan

-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr at denx.de


More information about the U-Boot mailing list