aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/hack-5.15/750-net-pcs-mtk-lynxi-workaround-2500BaseX-no-an.patch
diff options
context:
space:
mode:
authorOlliver Schinagl <oliver@schinagl.nl>2023-04-13 11:38:54 +0200
committerDaniel Golle <daniel@makrotopia.org>2023-04-27 16:18:44 +0100
commitde0ed4ffbfba7cb39acc93f783c3eccb1e3859d2 (patch)
treea82dfb568e6585b75f36c5cb381679b9ff2eeebd /target/linux/generic/hack-5.15/750-net-pcs-mtk-lynxi-workaround-2500BaseX-no-an.patch
parentc3549b931902e02a76a5cdf31817c58a8c315f12 (diff)
downloadupstream-de0ed4ffbfba7cb39acc93f783c3eccb1e3859d2.tar.gz
upstream-de0ed4ffbfba7cb39acc93f783c3eccb1e3859d2.tar.bz2
upstream-de0ed4ffbfba7cb39acc93f783c3eccb1e3859d2.zip
generic: Convert incorrect generic/5.15 patches again
OpenWrt's developer guide prefers having actual patches so they an be sent upstream more easily. However, in the case of hack-5.15 patches which are not meant for upstream, adding proper fields allows for `git am` to properly function. This commit tries to rectify that, by digging in the history to find where and how it was first added. Signed-off-by: Olliver Schinagl <oliver@schinagl.nl> Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'target/linux/generic/hack-5.15/750-net-pcs-mtk-lynxi-workaround-2500BaseX-no-an.patch')
-rw-r--r--target/linux/generic/hack-5.15/750-net-pcs-mtk-lynxi-workaround-2500BaseX-no-an.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/target/linux/generic/hack-5.15/750-net-pcs-mtk-lynxi-workaround-2500BaseX-no-an.patch b/target/linux/generic/hack-5.15/750-net-pcs-mtk-lynxi-workaround-2500BaseX-no-an.patch
index b03f0feab2..8b7f2f0955 100644
--- a/target/linux/generic/hack-5.15/750-net-pcs-mtk-lynxi-workaround-2500BaseX-no-an.patch
+++ b/target/linux/generic/hack-5.15/750-net-pcs-mtk-lynxi-workaround-2500BaseX-no-an.patch
@@ -1,3 +1,16 @@
+From 880d1311335120f64447ca9d11933872d734e19a Mon Sep 17 00:00:00 2001
+From: Daniel Golle <daniel@makrotopia.org>
+Date: Mon, 27 Mar 2023 18:41:54 +0100
+Subject: [PATCH] generic: pcs-mtk-lynxi: add hack to use 2500Base-X without AN
+
+Using 2500Base-T SFP modules e.g. on the BananaPi R3 requires manually
+disabling auto-negotiation, e.g. using ethtool. While a proper fix
+using SFP quirks is being discussed upstream, bring a work-around to
+restore user experience to what it was before the switch to the
+dedicated SGMII PCS driver.
+
+Signed-off-by: Daniel Golle <daniel@makrotopia.org>
+
--- a/drivers/net/pcs/pcs-mtk-lynxi.c
+++ b/drivers/net/pcs/pcs-mtk-lynxi.c
@@ -92,14 +92,23 @@ static void mtk_pcs_lynxi_get_state(stru