mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-27 07:01:24 +00:00
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 <vladimir.oltean@nxp.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Tested-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
This commit is contained in:
parent
d883a5fb52
commit
bc4e98282e
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue