From: Jeremy Linton Date: Mon, 22 Jun 2020 15:05:34 +0000 (+0530) Subject: net/fsl: enable extended scanning in xgmac_mdio X-Git-Tag: v5.10.7~1943^2~435^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0f183fd151c8c7e215385edfbdc5112d743434dc;p=platform%2Fkernel%2Flinux-rpi.git net/fsl: enable extended scanning in xgmac_mdio Since we know the xgmac hardware always has a c45 compliant bus, let's try scanning for c22 capable PHYs first. If we fail to find any, then it will fall back to c45 automatically. Signed-off-by: Jeremy Linton Signed-off-by: Calvin Johnson Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/freescale/xgmac_mdio.c b/drivers/net/ethernet/freescale/xgmac_mdio.c index b4ed5f8..98be51d 100644 --- a/drivers/net/ethernet/freescale/xgmac_mdio.c +++ b/drivers/net/ethernet/freescale/xgmac_mdio.c @@ -268,6 +268,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_C22_C45; snprintf(bus->id, MII_BUS_ID_SIZE, "%pa", &res->start); /* Set the PHY base address */