Skip to contentSkip to conversation

net: dsa: lantiq_gswip: support standard MDIO node name

RFC PATCH In review Daniel Golle 1 participant 1 message Aug 16, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

RFC PATCH 16/23 net: dsa: lantiq_gswip: support standard MDIO node name

Instead of matching against the child node's compatible string also support locating the node of the device tree node of the MDIO bus in the standard way by referencing the node name ("mdio").

---
 drivers/net/dsa/lantiq_gswip.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/net/dsa/lantiq_gswip.c +3 -0
index 6eae4fcb99e6..4641068d711b 100644
@@ -288,6 +288,9 @@ static int gswip_mdio(struct gswip_priv *priv)
 	int err = 0;
 
 	mdio_np = of_get_compatible_child(switch_np, "lantiq,xrx200-mdio");
+	if (!mdio_np)
+		mdio_np = of_get_child_by_name(switch_np, "mdio");
+
 	if (!of_device_is_available(mdio_np))
 		goto out_put_node;
 
Signature · 1 line
2.50.1