Skip to contentSkip to conversation

net: stmmac: allow gmac4 to probe for c45 devices before c22

RFC In review Wong Vee Khee 1 participant 1 message May 25, 2021

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

RFC 2/2 net: stmmac: allow gmac4 to probe for c45 devices before c22

Change the order of probing devices to Clause-45 followed by Clause-22. This will allow probing devices that only return valid PHY ID when accessed via Clause-45.

---
 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c +1 -1
index b750074f8f9c..1050d4c128ff 100644
@@ -425,7 +425,7 @@ int stmmac_mdio_register(struct net_device *ndev)
 	new_bus->name = "stmmac";
 
 	if (priv->plat->has_gmac4)
-		new_bus->probe_capabilities = MDIOBUS_C22_C45;
+		new_bus->probe_capabilities = MDIOBUS_C45_C22;
 
 	if (priv->plat->has_xgmac) {
 		new_bus->read = &stmmac_xgmac2_mdio_read;
Signature · 1 line
2.25.1