From: Wong Vee Khee Date: Wed, 9 Dec 2020 22:47:00 +0000 (+0800) Subject: net: stmmac: allow stmmac to probe for C45 PHY devices X-Git-Tag: accepted/tizen/unified/20230118.172025~8321^2~49 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=523437d7b5ba17ffc85f48d10e6cf5b8200e08de;p=platform%2Fkernel%2Flinux-rpi.git net: stmmac: allow stmmac to probe for C45 PHY devices Assign stmmac's mdio_bus probe capabilities to MDIOBUS_C22_C45. This extended the probing of C45 PHY devices on the MDIO bus. Signed-off-by: Wong Vee Khee Reviewed-by: Andrew Lunn Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c index b2a707e..d64116e 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c @@ -365,6 +365,9 @@ int stmmac_mdio_register(struct net_device *ndev) new_bus->name = "stmmac"; + if (priv->plat->has_gmac4) + new_bus->probe_capabilities = MDIOBUS_C22_C45; + if (priv->plat->has_xgmac) { new_bus->read = &stmmac_xgmac2_mdio_read; new_bus->write = &stmmac_xgmac2_mdio_write;