aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2022-01-04 23:34:23 +0000
committerDaniel Golle <daniel@makrotopia.org>2022-01-05 00:57:43 +0000
commitef1a64caf40e589a5c13cfc68032b3f95d02b715 (patch)
tree733304f3de8b991d1c3a3e75cca1d5e41009fedb
parent6c312d9717e1fd37552a6e840967cb0061f7bc8f (diff)
downloadupstream-ef1a64caf40e589a5c13cfc68032b3f95d02b715.tar.gz
upstream-ef1a64caf40e589a5c13cfc68032b3f95d02b715.tar.bz2
upstream-ef1a64caf40e589a5c13cfc68032b3f95d02b715.zip
mediatek: let mtk_eth_soc MAC announce 2500Base-T mode
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>
-rw-r--r--target/linux/mediatek/patches-5.10/703-net-ethernet-mtk_eth_soc-announce-2500baseT.patch10
1 files changed, 10 insertions, 0 deletions
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
index 0000000000..3dbeec08ac
--- /dev/null
+++ b/target/linux/mediatek/patches-5.10/703-net-ethernet-mtk_eth_soc-announce-2500baseT.patch
@@ -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)) {