From nobody Sun Jun 14 21:21:02 2026 Received: from mout01.posteo.de (mout01.posteo.de [185.67.36.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A34343603E9 for ; Mon, 6 Apr 2026 13:23:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.67.36.65 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775481816; cv=none; b=gRYTaxwZpTD4uMIwqTag4YZVKErZFbOxX89ZXBLoe77ou/bHD4DcLymBjUKFhMiHy7Qsprxf8p8vEWn9b9HzpzJrl6eIxAlkvG4lUzmOaa8Z32/TBAGqC+DR9smAtQ8t+SPSqfALEXfZZyNI+8ryxvBn7AuiGWa+27p6mIvecsg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775481816; c=relaxed/simple; bh=mXFAs2Coc5oDJXOUB6fDAqftGKxjrriAiqwPPKc6SZ4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=f434xmXSVofANY+s2Ht73n3Qf4AHzD6H7JumeawPbvVDY12EBuqhjlErKb7Dt6I6XKuBf0wNya8jD6Oh4KB8D2kidYE8eWA2Hx17lTbbHGMwubFeGQNhXeMFjvRt2NWgSOEfy4gRZPFlam9IsjIkoTCfALVIMtcHPI1VVaJc9P0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=posteo.net; spf=pass smtp.mailfrom=posteo.net; dkim=pass (2048-bit key) header.d=posteo.net header.i=@posteo.net header.b=GJWcnboR; arc=none smtp.client-ip=185.67.36.65 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=posteo.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=posteo.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=posteo.net header.i=@posteo.net header.b="GJWcnboR" Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 2C326240027 for ; Mon, 6 Apr 2026 15:23:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=posteo.net; s=2017; t=1775481814; bh=3CvR4mUYf6ZjmJGR7AtlPA2W77YYH5GWBlsX5HVZDK4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=GJWcnboRWlVnEpD1zeVyFc5MA5PXQYW9DQxINQp5Ui2/7BBUmaEQ1ffr0BPdb1UCN KJkind03lmAEmzVpMI+ZoNw3tBpjPK9VB0do3fxKWIUd4Q+jQoiYIoAdY8Y8lyuje8 Exc/JJVC8ZaTu3I38xM/YsxGof5u8Gb2yyr+5imrelaoB7TGQVOosEed/cjQE9XASC ytolA8DvjEmOOUZHrBM3CExbdW+GoXJPJvj9KLu0TFSuRFRbtgv2FKP64FcScEqcZI x26vLyuoIXMOphgxQb15wGV9sjNLFYSCDzfQQMy1RDGxUO+IoP8CCPGaRjPPp5QcqZ YLmV2R4rhzNTg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4fq94w2VBXz9rxD; Mon, 6 Apr 2026 15:23:27 +0200 (CEST) From: John Pavlick To: linux@armlinux.org.uk Cc: andrew@lunn.ch, hkallweit1@gmail.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, John Pavlick , Marcin Nita Subject: [PATCH v3] net: sfp: add quirks for Hisense and HSGQ GPON ONT SFP modules Date: Mon, 06 Apr 2026 13:23:33 +0000 Message-ID: <20260406132321.72563-1-jspavlick@posteo.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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. Suggested-by: Marcin Nita Signed-off-by: John Pavlick --- Changes in v3: - Fix inaccurate commit message: the MT7986 SerDes is not fixed at 2500base-X; it also supports 1000base-X and SGMII. Corrected to state that the kernel negotiates only 1G because it trusts the incorrect EEPROM data. Changes in v2: - Add Suggested-by tag for Marcin Nita , who suggested investigating sfp.c quirks as a solution rather than attempting to edit the EEPROM data directly on the module. drivers/net/phy/sfp.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/drivers/net/phy/sfp.c b/drivers/net/phy/sfp.c index f1070eb0a0bb..bd970f753beb 100644 --- a/drivers/net/phy/sfp.c +++ b/drivers/net/phy/sfp.c @@ -543,6 +543,22 @@ static const struct sfp_quirk sfp_quirks[] =3D { SFP_QUIRK("HUAWEI", "MA5671A", sfp_quirk_2500basex, sfp_fixup_ignore_tx_fault_and_los), =20 + // 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), + // Lantech 8330-262D-E and 8330-265D can operate at 2500base-X, but // incorrectly report 2500MBd NRZ in their EEPROM. // Some 8330-265D modules have inverted LOS, while all of them report --=20 2.53.0