forked from openwrt/openwrt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
generic: add patch for GPON-ONU-34-20BI quirk
Backport patch merged upstream adding quirk for SFP GPON-ONU-34-20BI. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
- Loading branch information
Showing
6 changed files
with
74 additions
and
8 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
...eneric/backport-5.15/798-net-next-net-sfp-add-quirk-for-Fiberstone-GPON-ONU-34-20BI.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
From d387e34fec407f881fdf165b5d7ec128ebff362f Mon Sep 17 00:00:00 2001 | ||
From: Christian Marangi <ansuelsmth@gmail.com> | ||
Date: Tue, 19 Sep 2023 14:47:20 +0200 | ||
Subject: [PATCH] net: sfp: add quirk for Fiberstone GPON-ONU-34-20BI | ||
|
||
Fiberstone GPON-ONU-34-20B can operate at 2500base-X, but report 1.2GBd | ||
NRZ in their EEPROM. | ||
|
||
The module also require the ignore tx fault fixup similar to Huawei MA5671A | ||
as it gets disabled on error messages with serial redirection enabled. | ||
|
||
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com> | ||
Link: https://lore.kernel.org/r/20230919124720.8210-1-ansuelsmth@gmail.com | ||
Signed-off-by: Paolo Abeni <pabeni@redhat.com> | ||
--- | ||
drivers/net/phy/sfp.c | 5 +++++ | ||
1 file changed, 5 insertions(+) | ||
|
||
--- a/drivers/net/phy/sfp.c | ||
+++ b/drivers/net/phy/sfp.c | ||
@@ -368,6 +368,13 @@ static const struct sfp_quirk sfp_quirks | ||
.modes = sfp_quirk_2500basex, | ||
.fixup = sfp_fixup_long_startup, | ||
}, { | ||
+ // Fiberstore GPON-ONU-34-20BI can operate at 2500base-X, but report 1.2GBd | ||
+ // NRZ in their EEPROM | ||
+ .vendor = "FS", | ||
+ .part = "GPON-ONU-34-20BI", | ||
+ .modes = sfp_quirk_2500basex, | ||
+ .fixup = sfp_fixup_ignore_tx_fault, | ||
+ }, { | ||
.vendor = "HALNy", | ||
.part = "HL-GSFP", | ||
.fixup = sfp_fixup_halny_gsfp, |
32 changes: 32 additions & 0 deletions
32
...generic/backport-6.1/701-net-next-net-sfp-add-quirk-for-Fiberstone-GPON-ONU-34-20BI.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
From d387e34fec407f881fdf165b5d7ec128ebff362f Mon Sep 17 00:00:00 2001 | ||
From: Christian Marangi <ansuelsmth@gmail.com> | ||
Date: Tue, 19 Sep 2023 14:47:20 +0200 | ||
Subject: [PATCH] net: sfp: add quirk for Fiberstone GPON-ONU-34-20BI | ||
|
||
Fiberstone GPON-ONU-34-20B can operate at 2500base-X, but report 1.2GBd | ||
NRZ in their EEPROM. | ||
|
||
The module also require the ignore tx fault fixup similar to Huawei MA5671A | ||
as it gets disabled on error messages with serial redirection enabled. | ||
|
||
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com> | ||
Link: https://lore.kernel.org/r/20230919124720.8210-1-ansuelsmth@gmail.com | ||
Signed-off-by: Paolo Abeni <pabeni@redhat.com> | ||
--- | ||
drivers/net/phy/sfp.c | 5 +++++ | ||
1 file changed, 5 insertions(+) | ||
|
||
--- a/drivers/net/phy/sfp.c | ||
+++ b/drivers/net/phy/sfp.c | ||
@@ -393,6 +393,11 @@ static const struct sfp_quirk sfp_quirks | ||
SFP_QUIRK("ALCATELLUCENT", "3FE46541AA", sfp_quirk_2500basex, | ||
sfp_fixup_long_startup), | ||
|
||
+ // Fiberstore GPON-ONU-34-20BI can operate at 2500base-X, but report 1.2GBd | ||
+ // NRZ in their EEPROM | ||
+ SFP_QUIRK("FS", "GPON-ONU-34-20BI", sfp_quirk_2500basex, | ||
+ sfp_fixup_ignore_tx_fault), | ||
+ | ||
SFP_QUIRK_F("HALNy", "HL-GSFP", sfp_fixup_halny_gsfp), | ||
|
||
// HG MXPD-483II-F 2.5G supports 2500Base-X, but incorrectly reports |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters