Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Christian Marangi and committed by
Paolo Abeni
d387e34f 5a1b322c

+5
+5
drivers/net/phy/sfp.c
··· 452 452 // Rollball protocol to talk to the PHY. 453 453 SFP_QUIRK_F("FS", "SFP-10G-T", sfp_fixup_fs_10gt), 454 454 455 + // Fiberstore GPON-ONU-34-20BI can operate at 2500base-X, but report 1.2GBd 456 + // NRZ in their EEPROM 457 + SFP_QUIRK("FS", "GPON-ONU-34-20BI", sfp_quirk_2500basex, 458 + sfp_fixup_ignore_tx_fault), 459 + 455 460 SFP_QUIRK_F("HALNy", "HL-GSFP", sfp_fixup_halny_gsfp), 456 461 457 462 // HG MXPD-483II-F 2.5G supports 2500Base-X, but incorrectly reports