[RFC 11/11] net: example xgmac enable extended scanning
From: Jeremy Linton
Date: Fri May 22 2020 - 17:31:29 EST
Since we know the xgmac hardware always has a c45
complaint bus, lets try scanning for c45 capable
phys first. If we fail to find any, then it with
fall back to c22 automatically.
Signed-off-by: Jeremy Linton <jeremy.linton@xxxxxxx>
---
drivers/net/ethernet/freescale/xgmac_mdio.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/ethernet/freescale/xgmac_mdio.c b/drivers/net/ethernet/freescale/xgmac_mdio.c
index 96ee3bd89983..1d7313031be6 100644
--- a/drivers/net/ethernet/freescale/xgmac_mdio.c
+++ b/drivers/net/ethernet/freescale/xgmac_mdio.c
@@ -263,6 +263,7 @@ static int xgmac_mdio_probe(struct platform_device *pdev)
bus->read = xgmac_mdio_read;
bus->write = xgmac_mdio_write;
bus->parent = &pdev->dev;
+ bus->probe_capabilities = MDIOBUS_C45_FIRST;
snprintf(bus->id, MII_BUS_ID_SIZE, "%llx", (unsigned long long)res->start);
/* Set the PHY base address */
--
2.26.2