net: stmmac: allow stmmac to probe for C45 PHY devices
Subsystems (4)
PATCH v2 1/1 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.
---
v2 changelog:
- Added conditional check for gmac4.
--- drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c +3 -0
@@ -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;
Signature · 1 line
2.17.0
Quoted 4 lines · Wong Vee Khee
Assign stmmac's
mdio_busprobe capabilities toMDIOBUS_C22_C45. This extended the probing of C45 PHY devices on the MDIO bus.Signed-off-by Wong Vee Khee <[email protected]>
Andrew
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
From: Wong Vee Khee <[email protected]>
Date: Thu, 10 Dec 2020 06:47:00 +0800
Quoted 7 lines
Assign stmmac's
mdio_busprobe capabilities toMDIOBUS_C22_C45. This extended the probing of C45 PHY devices on the MDIO bus.Signed-off-by Wong Vee Khee <[email protected]>---
v2 changelog:
- Added conditional check for gmac4.
Applied, thanks.