diff options
author | Vignesh Raghavendra <vigneshr@ti.com> | 2021-05-10 20:06:10 +0530 |
---|---|---|
committer | Lokesh Vutla <lokeshvutla@ti.com> | 2021-05-12 16:36:38 +0530 |
commit | 2411e85b99293de8701c42d52b31249f0232622c (patch) | |
tree | de36b66b9442d05c749c313e72d57b66306a55cf /drivers/net/ti | |
parent | 8441d49e60e0095acb1c9574135966ceefec4147 (diff) | |
download | u-boot-2411e85b99293de8701c42d52b31249f0232622c.zip u-boot-2411e85b99293de8701c42d52b31249f0232622c.tar.gz u-boot-2411e85b99293de8701c42d52b31249f0232622c.tar.bz2 |
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>
Diffstat (limited to 'drivers/net/ti')
-rw-r--r-- | drivers/net/ti/am65-cpsw-nuss.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ti/am65-cpsw-nuss.c b/drivers/net/ti/am65-cpsw-nuss.c index 9f11ce6..3534a6d 100644 --- a/drivers/net/ti/am65-cpsw-nuss.c +++ b/drivers/net/ti/am65-cpsw-nuss.c @@ -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; |