mediatek: let mtk_eth_soc MAC announce 2500Base-T mode
authorDaniel Golle <daniel@makrotopia.org>
Tue, 4 Jan 2022 23:34:23 +0000 (23:34 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Wed, 5 Jan 2022 00:57:43 +0000 (00:57 +0000)
To allows Ethernet phys supporting 2500Base-T mode to announce that
speed, enable the corresponding bit in mtk_eth_soc driver.
This should hopefully unlock 2500Base-T speed on the UniFi 6 LR.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
target/linux/mediatek/patches-5.10/703-net-ethernet-mtk_eth_soc-announce-2500baseT.patch [new file with mode: 0644]

diff --git a/target/linux/mediatek/patches-5.10/703-net-ethernet-mtk_eth_soc-announce-2500baseT.patch b/target/linux/mediatek/patches-5.10/703-net-ethernet-mtk_eth_soc-announce-2500baseT.patch
new file mode 100644 (file)
index 0000000..3dbeec0
--- /dev/null
@@ -0,0 +1,10 @@
+--- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c
++++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
+@@ -564,6 +564,7 @@ static void mtk_validate(struct phylink_
+               if (MTK_HAS_CAPS(mac->hw->soc->caps, MTK_SGMII)) {
+                       phylink_set(mask, 1000baseT_Full);
+                       phylink_set(mask, 1000baseX_Full);
++                      phylink_set(mask, 2500baseT_Full);
+                       phylink_set(mask, 2500baseX_Full);
+               }
+               if (MTK_HAS_CAPS(mac->hw->soc->caps, MTK_RGMII)) {