56e14c5c0a90ccf89297164bad58797daad78a4d
[openwrt/staging/neocturne.git] /
1 From d387e34fec407f881fdf165b5d7ec128ebff362f Mon Sep 17 00:00:00 2001
2 From: Christian Marangi <ansuelsmth@gmail.com>
3 Date: Tue, 19 Sep 2023 14:47:20 +0200
4 Subject: [PATCH] net: sfp: add quirk for Fiberstone GPON-ONU-34-20BI
5
6 Fiberstone GPON-ONU-34-20B can operate at 2500base-X, but report 1.2GBd
7 NRZ in their EEPROM.
8
9 The module also require the ignore tx fault fixup similar to Huawei MA5671A
10 as it gets disabled on error messages with serial redirection enabled.
11
12 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
13 Link: https://lore.kernel.org/r/20230919124720.8210-1-ansuelsmth@gmail.com
14 Signed-off-by: Paolo Abeni <pabeni@redhat.com>
15 ---
16 drivers/net/phy/sfp.c | 5 +++++
17 1 file changed, 5 insertions(+)
18
19 --- a/drivers/net/phy/sfp.c
20 +++ b/drivers/net/phy/sfp.c
21 @@ -393,6 +393,11 @@ static const struct sfp_quirk sfp_quirks
22 SFP_QUIRK("ALCATELLUCENT", "3FE46541AA", sfp_quirk_2500basex,
23 sfp_fixup_long_startup),
24
25 + // Fiberstore GPON-ONU-34-20BI can operate at 2500base-X, but report 1.2GBd
26 + // NRZ in their EEPROM
27 + SFP_QUIRK("FS", "GPON-ONU-34-20BI", sfp_quirk_2500basex,
28 + sfp_fixup_ignore_tx_fault),
29 +
30 SFP_QUIRK_F("HALNy", "HL-GSFP", sfp_fixup_halny_gsfp),
31
32 // HG MXPD-483II-F 2.5G supports 2500Base-X, but incorrectly reports