drivers: net: fsl_enetc: Add 2.5Gbps to supported link speeds
authorAlex Marginean <alexandru.marginean@nxp.com>
Thu, 14 Nov 2019 16:58:45 +0000 (18:58 +0200)
committerJoe Hershberger <joe.hershberger@ni.com>
Mon, 9 Dec 2019 15:47:43 +0000 (09:47 -0600)
The original code enabled link speeds up to 1Gbps, but the interface can
go up to 2.5G, enable that speed to in PHY AN mask.

Signed-off-by: Alex Marginean <alexandru.marginean@nxp.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/fsl_enetc.c

index c94ba240f87ba87216729e3e82d0f9495e72d144..64dc244da2701ef43fa0c8701a07433ab14c85c5 100644 (file)
@@ -215,8 +215,9 @@ static void enetc_config_phy(struct udevice *dev)
        if (!priv->phy)
                return;
 
-       supported = GENMASK(6, 0); /* speeds up to 1G & AN */
-       priv->phy->advertising = priv->phy->supported & supported;
+       supported = PHY_GBIT_FEATURES | SUPPORTED_2500baseX_Full;
+       priv->phy->supported &= supported;
+       priv->phy->advertising &= supported;
 
        phy_config(priv->phy);
 }