From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796379683; b=lQt7sA7dw/TYcGJmtk6juwqmiPwVgYuQ8y24lUJO9EwpNl28ZXLa9aFWRfjc3XFEkxh8 F5cyAFDdNrxvgX8EngrDJcEqWl6GzGXRy0fzzxIgKJZua5/04y13w9GKRz5byQ39DVJcR XWnPnqOi1MHZyzbKchV6+uaftre4ooK+BDKgPKDt2Foxj0RZVYm4R1JhKqGqi+lzbAKpV cqYeRF6za6OKRQHfJT8Rz/XFl4yuqFgnBm15x1wu+T9KJTDD5AiG0e92NhPD79ZgaMUCM nxPHE8Du3VS4AIgBRDyR+DRnALNHvaM4S1nQE/GEAWvS7uXmkbSIBtCozzH94fKbukQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796379683; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Type:Content-Transfer-Encoding; bh=0pM5mF1NBjhnnG+ShihYjBKmc/zMmKqNMGKnm193ocE=; b=11l7I57y3ySRsuxXGf3GI3JSlyqC/SXfkaD/uil3LmQ6g+bvldSq44U8+lftsti98RfH +CVP5gnMEJpwIAWvvjbSsiU++2L80hkXvXjn4B/ksc9pTAoilMgVNBEWGsHnreGu2qs4Q owv01LWK3PmaamI6x0Co/JfjB8YhyuaJFEh4IRcNCWaQrAWR6TJVGypz2B6OEQE8dauRr zNRLWg6/8eQlVUSHobGgYhGyvgcnXvOM69Os+DBbtwApi8l7ICJB8AauJZMj5WlNLiQqb 9t18i0qdre+cSWljRAwoYGmi/WRQ0ICG8ycm4wShtc9I14EpCw+bzYWclqtaMZZ3Oig== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=kSYVlQem; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A5926606A322; Fri, 4 Dec 2026 10:21:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=kSYVlQem Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1A3141F000C2; Fri, 4 Dec 2026 10:21:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796379683; bh=0pM5mF1NBjhnnG+ShihYjBKmc/zMmKqNMGKnm193ocE=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=kSYVlQemadmNo8xHRnGjhNM8tYZPM1w2j5BzBjEBpVe5z+6zD2UC1i37rOjr6AYVx 9xHYKuP27MlTv1GsX4sOkSqr2JdhNSaKUIrKzJeQwwB+vcXOoKKc6ZMVGnLX0vPS8J O+3uL1xq12YwlBbUhb53IYy7Fy6ER+1Tm58ZcTtk= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, =?UTF-8?q?Marek=20Beh=C3=BAn?= , Jakub Kicinski , Josef Schlehofer , Sasha Levin Subject: [PATCH 6.6 0035/1167] net: sfp: add quirk for Lantech 8330-265D Date: Fri, 4 Dec 2026 18:51:02 +0900 Message-ID: <20261204100702.958658353@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100702.047403948@linuxfoundation.org> References: <20261204100702.047403948@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: patches@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Marek BehĂșn [ Upstream commit 86a8e8e0ddbc3d14c799536eb888180b84d002f3 ] Similar to Lantech 8330-262D-E, the Lantech 8330-265D also reports 2500MBd instead of 3125MBd. Also, all 8330-265D report normal RX_LOS in EEPROM, but some signal inverted RX_LOS. We therefore need to ignore RX_LOS on these modules. Signed-off-by: Marek BehĂșn Link: https://patch.msgid.link/20260128170044.15576-1-kabel@kernel.org Signed-off-by: Jakub Kicinski [ Adjusted context. 6.6.y uses SFP_QUIRK_M instead of SFP_QUIRK_S and has other entries next to the Lantech one. The added lines are unchanged. ] Signed-off-by: Josef Schlehofer Signed-off-by: Sasha Levin --- drivers/net/phy/sfp.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/net/phy/sfp.c b/drivers/net/phy/sfp.c index 7d0cc601a56eb..6f69b00bd5bb3 100644 --- a/drivers/net/phy/sfp.c +++ b/drivers/net/phy/sfp.c @@ -533,9 +533,13 @@ static const struct sfp_quirk sfp_quirks[] = { // FS 2.5G Base-T SFP_QUIRK_M("FS", "SFP-2.5G-T", sfp_quirk_oem_2_5g), - // Lantech 8330-262D-E can operate at 2500base-X, but incorrectly report - // 2500MBd NRZ in their EEPROM + // 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 + // normal LOS in EEPROM. Therefore we need to ignore LOS entirely. SFP_QUIRK_M("Lantech", "8330-262D-E", sfp_quirk_2500basex), + SFP_QUIRK("Lantech", "8330-265D", sfp_quirk_2500basex, + sfp_fixup_ignore_los), SFP_QUIRK_M("UBNT", "UF-INSTANT", sfp_quirk_ubnt_uf_instant), -- 2.53.0