[][kernel][common][eth][Add 10000baseCR_Full capability to USXGMII for the SFP+]
[Description]
Add 10000baseCR_Full capability to USXGMII for the SFP+.
Some SFP+ report 10000baseCR_Full capability in their EEPROM, but the
ETH driver doesn't.
Therefore, the phylink framework will clear this capability from the
supported array.
If without this patch, some 10G SFP+ DAC cables cannot link up 10Gbps
with the link partner.
[Release-log]
N/A
Change-Id: Ia0abaf5eb1fc6d9520c94f7a431ccdf3c76b8598
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/7471380
diff --git a/target/linux/mediatek/files-5.4/drivers/net/ethernet/mediatek/mtk_eth_soc.c b/target/linux/mediatek/files-5.4/drivers/net/ethernet/mediatek/mtk_eth_soc.c
index 9d62226..686ddda 100755
--- a/target/linux/mediatek/files-5.4/drivers/net/ethernet/mediatek/mtk_eth_soc.c
+++ b/target/linux/mediatek/files-5.4/drivers/net/ethernet/mediatek/mtk_eth_soc.c
@@ -1084,6 +1084,7 @@
if (MTK_HAS_CAPS(mac->hw->soc->caps, MTK_USXGMII)) {
phylink_set(mask, 10000baseKR_Full);
phylink_set(mask, 10000baseT_Full);
+ phylink_set(mask, 10000baseCR_Full);
phylink_set(mask, 10000baseSR_Full);
phylink_set(mask, 10000baseLR_Full);
phylink_set(mask, 10000baseLRM_Full);