From: Vladimir Oltean Date: Sat, 18 Sep 2021 12:46:55 +0000 (+0300) Subject: net: tsec: read the phy-mode property as fallback to phy-connection-type X-Git-Tag: v2025.01-rc5-pxa1908~1694^2~6^2~25 X-Git-Url: http://git.dujemihanovic.xyz/%22http:/www.sics.se/static/git-logo.png?a=commitdiff_plain;h=bc4e98282eaee0d7870476ac78d9e534c4d6c59f;p=u-boot.git net: tsec: read the phy-mode property as fallback to phy-connection-type The two should be equivalent, but at the moment some platforms (ls1021a-tsn.dts) use phy-mode only, which is not parsed. Signed-off-by: Vladimir Oltean Reviewed-by: Bin Meng Tested-by: Bin Meng Reviewed-by: Ramon Fried --- diff --git a/drivers/net/tsec.c b/drivers/net/tsec.c index 851072c223..0ce9765671 100644 --- a/drivers/net/tsec.c +++ b/drivers/net/tsec.c @@ -884,6 +884,8 @@ int tsec_probe(struct udevice *dev) priv->tbiaddr = tbiaddr; phy_mode = dev_read_prop(dev, "phy-connection-type", NULL); + if (!phy_mode) + phy_mode = dev_read_prop(dev, "phy-mode", NULL); if (phy_mode) pdata->phy_interface = phy_get_interface_by_name(phy_mode); if (pdata->phy_interface == -1)