d6015a56584143420be90392da13e9530505793c
[openwrt/staging/thess.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 @@ -368,6 +368,13 @@ static const struct sfp_quirk sfp_quirks
22 .modes = sfp_quirk_2500basex,
23 .fixup = 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 + .vendor = "FS",
28 + .part = "GPON-ONU-34-20BI",
29 + .modes = sfp_quirk_2500basex,
30 + .fixup = sfp_fixup_ignore_tx_fault,
31 + }, {
32 .vendor = "HALNy",
33 .part = "HL-GSFP",
34 .fixup = sfp_fixup_halny_gsfp,