Skip to contentSkip to conversation

net: sfp: add quirks for Hisense and HSGQ GPON ONT SFP modules

PATCH Applied Josef Schlehofer 2 participants 2 messages Oct 4 – Oct 5 Stable branch

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: sfp: add quirks for Hisense and HSGQ GPON ONT SFP modules

From: John Pavlick <[email protected]>

commit 95aca8602ef70ffd3d971675751c81826e124f90 upstream.

Several GPON ONT SFP sticks based on Realtek RTL960x report 1000BASE-LX at 1300MBd in their EEPROM but can operate at 2500base-X. On hosts capable of 2500base-X (e.g. Banana Pi R3 / MT7986), the kernel negotiates only 1G because it trusts the incorrect EEPROM data.

Add quirks for:
- Hisense-Leox LXT-010S-H
- Hisense ZNID-GPON-2311NA
- HSGQ HSGQ-XPON-Stick

Each quirk advertises 2500base-X and ignores TX_FAULT during the module's ~40s Linux boot time.

Tested on Banana Pi R3 (MT7986) with OpenWrt 25.12.1, confirmed 2.5Gbps link and full throughput with flow offloading.

---
Backport note: in 6.6 the quirk after Huawei MA5671A is FS SFP-2.5G-T, not the Lantech 8330-262D-E/8330-265D one, so the upstream patch does not apply cleanly. The entries are added at the same place, right after MA5671A. No other changes.

The same change is proposed for OpenWrt 24.10 (6.6.157). Its CI built it on mvebu and realtek, both with CONFIG_SFP=y:
https://github.com/openwrt/openwrt/pull/25592

 drivers/net/phy/sfp.c | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
drivers/net/phy/sfp.c +16 -0
index e352ceb2f7cb..38ab35e57127 100644
@@ -514,6 +514,22 @@ static const struct sfp_quirk sfp_quirks[] = {
 	SFP_QUIRK("HUAWEI", "MA5671A", sfp_quirk_2500basex,
 		  sfp_fixup_ignore_tx_fault_and_los),
 
+	// Hisense LXT-010S-H is a GPON ONT SFP (sold as LEOX LXT-010S-H) that
+	// can operate at 2500base-X, but reports 1000BASE-LX / 1300MBd in its
+	// EEPROM
+	SFP_QUIRK("Hisense-Leox", "LXT-010S-H", sfp_quirk_2500basex,
+		  sfp_fixup_ignore_tx_fault),
+
+	// Hisense ZNID-GPON-2311NA can operate at 2500base-X, but reports
+	// 1000BASE-LX / 1300MBd in its EEPROM
+	SFP_QUIRK("Hisense", "ZNID-GPON-2311NA", sfp_quirk_2500basex,
+		  sfp_fixup_ignore_tx_fault),
+
+	// HSGQ HSGQ-XPON-Stick can operate at 2500base-X, but reports
+	// 1000BASE-LX / 1300MBd in its EEPROM
+	SFP_QUIRK("HSGQ", "HSGQ-XPON-Stick", sfp_quirk_2500basex,
+		  sfp_fixup_ignore_tx_fault),
+
 	// FS 2.5G Base-T
 	SFP_QUIRK_M("FS", "SFP-2.5G-T", sfp_quirk_oem_2_5g),
 
Signature · 1 line
2.54.0 (Apple Git-157)
maintainer Applied
#1 lore raw
Quoted 4 lines

Add quirks for:
- Hisense-Leox LXT-010S-H
- Hisense ZNID-GPON-2311NA
- HSGQ HSGQ-XPON-Stick

Queued for 6.6, thanks.

Signature · 2 lines
Thanks,
Sasha