diff options
author | Vladimir Oltean | 2021-09-18 15:46:55 +0300 |
---|---|---|
committer | Ramon Fried | 2021-09-28 18:50:56 +0300 |
commit | bc4e98282eaee0d7870476ac78d9e534c4d6c59f (patch) | |
tree | 50f59304b30533841c70eba1bcd1b5b3469df039 /drivers/net/tsec.c | |
parent | d883a5fb52b3fe1b6cb653faa60095df0c11a6bf (diff) |
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>
Diffstat (limited to 'drivers/net/tsec.c')
-rw-r--r-- | drivers/net/tsec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/tsec.c b/drivers/net/tsec.c index 851072c223d..0ce97656715 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) |