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>
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);
}