projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95ffeaf
)
net: dsa: qca8k: add ethernet-ports fallback to setup_mdio_bus
author
Ansuel Smith
<ansuelsmth@gmail.com>
Fri, 14 May 2021 21:00:05 +0000
(23:00 +0200)
committer
David S. Miller
<davem@davemloft.net>
Fri, 14 May 2021 22:30:22 +0000
(15:30 -0700)
Dsa now also supports ethernet-ports. Add this new binding as a fallback
if the ports node can't be found.
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/qca8k.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/dsa/qca8k.c
b/drivers/net/dsa/qca8k.c
index 35ff4cf087869a9f1c81b9abf513af08d9feb6a7..cc9ab35f8b170110b6c9cb60e81d7a173a3d2828 100644
(file)
--- a/
drivers/net/dsa/qca8k.c
+++ b/
drivers/net/dsa/qca8k.c
@@
-718,6
+718,9
@@
qca8k_setup_mdio_bus(struct qca8k_priv *priv)
int err;
ports = of_get_child_by_name(priv->dev->of_node, "ports");
+ if (!ports)
+ ports = of_get_child_by_name(priv->dev->of_node, "ethernet-ports");
+
if (!ports)
return -EINVAL;