Skip to content

Commit

Permalink
net: stmmac: allow stmmac to probe for C45 PHY devices
Browse files Browse the repository at this point in the history
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 <vee.khee.wong@intel.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Wong Vee Khee authored and David S. Miller committed Dec 10, 2020
1 parent 5cab303 commit 523437d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 523437d

Please sign in to comment.