From nobody Sun Jun 14 21:18:57 2026 Received: from mout02.posteo.de (mout02.posteo.de [185.67.36.66]) (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 6BACE3064A9 for ; Mon, 6 Apr 2026 11:44:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.67.36.66 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775475857; cv=none; b=sSxapIUOChIyBbCKzin7V/FIoYKFzGLEFarAqX+ML/feThpjDnBsTYkOREdQ7Vg5jfT1rqLsrWGticMKBxrwncIGDcEneRopNQ8Ckj62jpr88ASGAp836SFIa73iX2+RN3hguJ5a7snVvAfsfWc3lt0E2aCxs8sEJtqcn+uZX9g= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775475857; c=relaxed/simple; bh=WhpS/KP8N+h++LNKoLk4eu5ll51D156G/Un8Kyiwxkk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Ro4v4lDCc+ng3fSUJLWoz4ExNuORTDMvtcHe/Et8smqBr7JC24rpW4snGoyhRQG2Lx3pliK0UYS+UxOD9QCb/O4VXH4zIVg31+bXgWLarenKkxcZ4fNR6oVEbFFF5qFV22pDHDL+wm6+12OFY5I09dXLCSJLj8aD4AMTI4vBWqw= 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=PBau4TFS; arc=none smtp.client-ip=185.67.36.66 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="PBau4TFS" Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id F19BA240103 for ; Mon, 6 Apr 2026 13:44:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=posteo.net; s=2017; t=1775475845; bh=LZtkpNfc7eXlrOjhYAu2H3N8qUxWCwLGFLDfIsl33OA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=PBau4TFSlDD85juh2pj63MIUOjgoSzgFRlHmkmd4IPqHhgguiV3bZfdHeIBOsR5N/ x2Jv2t06MB3c8y2Ad4WlqryJNFzxSXjjSxb8yDPKbkFCNklbFUBYntz2lnb6Y+qmTi xZ5K3ln6ovLBcnSGJxzfvlwId5h/qW6t7x4Nv1QK9dTDPtsqLlseEtGCJCkXUBzRxG 0MpG4JiUQCcJLDmCHz39HzlvsnnG1G9dzS7jQnXS9cacepHHiXWo4Dig+TgXteZDg/ k/hRriY0dkS8BKEBcFEa7R+jNo5bBFBdjzI+JIuKZL1pMd07wi0hIVT5oHcnv0euUO NdvG86bIuJOBA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4fq6tC26qYz6tw1; Mon, 6 Apr 2026 13:44:03 +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 Subject: [PATCH] net: sfp: add quirks for GPON ONT SFP sticks Date: Mon, 06 Apr 2026 11:44:05 +0000 Message-ID: <20260406114352.69168-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 with serdes fixed at 2.5Gbase-X (e.g. Banana Pi R3 / MT7986), the kernel rejects them with 'no common interface modes'. 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. Signed-off-by: John Pavlick --- 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