projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8441d49
)
net: ti: am65-cpsw-nuss: Don't cache disabled port ID
author
Vignesh Raghavendra
<vigneshr@ti.com>
Mon, 10 May 2021 14:36:10 +0000
(20:06 +0530)
committer
Lokesh Vutla
<lokeshvutla@ti.com>
Wed, 12 May 2021 11:06:38 +0000
(16:36 +0530)
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>
drivers/net/ti/am65-cpsw-nuss.c
patch
|
blob
|
history
diff --git
a/drivers/net/ti/am65-cpsw-nuss.c
b/drivers/net/ti/am65-cpsw-nuss.c
index
9f11ce6
..
3534a6d
100644
(file)
--- 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;