From 462a088c474832b19ff2730de1e6bea66d399c23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sat, 15 Oct 2022 23:01:29 +0200 Subject: Add Turris kernel (includes patches from OpenWrt) --- ...up-net-sfp-add-support-for-HALNy-GPON-SFP.patch | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 pkgs/patches-linux-5.15/114-fixup-net-sfp-add-support-for-HALNy-GPON-SFP.patch (limited to 'pkgs/patches-linux-5.15/114-fixup-net-sfp-add-support-for-HALNy-GPON-SFP.patch') diff --git a/pkgs/patches-linux-5.15/114-fixup-net-sfp-add-support-for-HALNy-GPON-SFP.patch b/pkgs/patches-linux-5.15/114-fixup-net-sfp-add-support-for-HALNy-GPON-SFP.patch new file mode 100644 index 0000000..99ca247 --- /dev/null +++ b/pkgs/patches-linux-5.15/114-fixup-net-sfp-add-support-for-HALNy-GPON-SFP.patch @@ -0,0 +1,42 @@ +From 6dc810804bb2fa91d9972601c209471fab852509 Mon Sep 17 00:00:00 2001 +From: Josef Schlehofer +Date: Fri, 26 Aug 2022 20:50:51 +0200 +Subject: [PATCH] fixup! net: sfp: add support for HALNy GPON SFP + +There are a few typos, which was reported by Orest Worhacz +(@AreYouLoco), which needs to be fixed. + +SFP is detected as +[ 9.607535] sfp sfp: module HALNy HL-GSFP rev V1.0 sn HALN1010493c dc 20150525 +--- + drivers/net/phy/sfp.c | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/drivers/net/phy/sfp.c b/drivers/net/phy/sfp.c +index 2ebc577bfc56..277292e2ed35 100644 +--- a/drivers/net/phy/sfp.c ++++ b/drivers/net/phy/sfp.c +@@ -329,7 +329,7 @@ static void sfp_fixup_inverted_los(struct sfp *sfp) + sfp->id.ext.options |= los_inverted; + } + +-static void sfp_fixup_hanly_gsfp(struct sfp *sfp) ++static void sfp_fixup_halny_gsfp(struct sfp *sfp) + { + /* LOS is inverted */ + sfp_fixup_inverted_los(sfp); +@@ -369,9 +369,9 @@ static const struct sfp_quirk sfp_quirks[] = { + .modes = sfp_quirk_2500basex, + .fixup = sfp_fixup_long_startup, + }, { +- .vendor = "HANLy", ++ .vendor = "HALNy", + .part = "HL-GSFP", +- .fixup = sfp_fixup_hanly_gsfp, ++ .fixup = sfp_fixup_halny_gsfp, + }, { + // Huawei MA5671A can operate at 2500base-X, but report 1.2GBd + // NRZ in their EEPROM +-- +2.34.1 + -- cgit v1.2.3