mirror of
https://github.com/u-boot/u-boot.git
synced 2024-12-14 07:13:28 +08:00
net: ti: am65-cpsw-nuss: Don't cache disabled port ID
Currently driver may end up caching disabled port ID as active interface. Fix this by bailing out earlier in case port is marked disabled in the DT. Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
This commit is contained in:
parent
8441d49e60
commit
2411e85b99
@ -719,11 +719,11 @@ static int am65_cpsw_probe_cpsw(struct udevice *dev)
|
||||
if (!port_id)
|
||||
continue;
|
||||
|
||||
priv->port_id = port_id;
|
||||
cpsw_common->ports[port_id].disabled = disabled;
|
||||
if (disabled)
|
||||
continue;
|
||||
|
||||
priv->port_id = port_id;
|
||||
ret = am65_cpsw_ofdata_parse_phy(dev, node);
|
||||
if (ret)
|
||||
goto out;
|
||||
|
Loading…
Reference in New Issue
Block a user