From: Alex Marginean Date: Thu, 14 Nov 2019 16:58:45 +0000 (+0200) Subject: drivers: net: fsl_enetc: Add 2.5Gbps to supported link speeds X-Git-Tag: v2020.01-rc5~8^2~11 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=307f8a6d1f034fc23aa7a42fa121f7fa011a33e4;p=oweals%2Fu-boot.git drivers: net: fsl_enetc: Add 2.5Gbps to supported link speeds 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 Acked-by: Joe Hershberger --- diff --git a/drivers/net/fsl_enetc.c b/drivers/net/fsl_enetc.c index c94ba240f8..64dc244da2 100644 --- a/drivers/net/fsl_enetc.c +++ b/drivers/net/fsl_enetc.c @@ -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); }