From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 39CBF3AC633; Sat, 28 Feb 2026 17:38:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772300294; cv=none; b=JSYTKwcB7F0F4jDKnx4IGwzQijmTjcxU0sKfrv4wtvFlDqGeTv0BtWSZ782x5l+llVtti9j17NPCieAasQQnhIZuidJZaScKyOtHtlDRy24FVsiSpNppuIWDMnxs2SG0wkJ67m+FzWb74XqSRkCKkViGbP5mpH/q6/QbOgQWkXA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772300294; c=relaxed/simple; bh=r2xgP5PyfmenROj68v9m+9bJzfof5h81AA6cs0O7Ns4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=CEeVq5BJYqFQcOXkE8/mfE0pvH/mJwrm0MuUlRarWt+nspSiW1yUNQh39KoYE1W4VCLH9bwS4RyO1Wt40lYF9jcLVORS0Ax4eqc5Ia7V1Dx+actfXiMfeMC02XRZHTPNTK3LPwMQV3+UVr2hSUQt+y9ms9p2iDPA4OrFngVMvBo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=bQbmkhjO; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="bQbmkhjO" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 589D4C19423; Sat, 28 Feb 2026 17:38:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1772300293; bh=r2xgP5PyfmenROj68v9m+9bJzfof5h81AA6cs0O7Ns4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bQbmkhjOhnf4ariIISrIgX+KwBAPaKRsG040Lymq5ykRx7BKFhz0fNozVPav+4fhF 5qoeUMWxq+Y/DvcucyG/QWtLOMFwZUTOiPgPARkG5g4zIYwwNJI8gsWAyuPbnWxM8V TjYpUlahHqs8Rjjjv9TZ6dizHwKKMNKFUcZQ5m+eRrhLYI7+wN69HTVCbQFHwXYSlO zg55zFGDK+0Y1qdjcAU9kERYjeiPt2SgkX8qzk3a7RGyWQApcz9XwfsL47DIko+oI1 IuwJMwobhjOAtSDRH6Dwv5E0ZhJuW0TG9wQZuRgSQoyUjj32xJQk1P319oLl4/SLqH ICx3CqJEKfbkg== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: =?UTF-8?q?Marek=20Beh=C3=BAn?= , Jakub Kicinski , Sasha Levin Subject: [PATCH 6.19 323/844] net: sfp: add quirk for Lantech 8330-265D Date: Sat, 28 Feb 2026 12:23:56 -0500 Message-ID: <20260228173244.1509663-324-sashal@kernel.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260228173244.1509663-1-sashal@kernel.org> References: <20260228173244.1509663-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit 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 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 3e023723887c4..43aefdd8b70f7 100644 --- a/drivers/net/phy/sfp.c +++ b/drivers/net/phy/sfp.c @@ -532,9 +532,13 @@ static const struct sfp_quirk sfp_quirks[] = { SFP_QUIRK("HUAWEI", "MA5671A", sfp_quirk_2500basex, sfp_fixup_ignore_tx_fault), - // 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_S("Lantech", "8330-262D-E", sfp_quirk_2500basex), + SFP_QUIRK("Lantech", "8330-265D", sfp_quirk_2500basex, + sfp_fixup_ignore_los), SFP_QUIRK_S("UBNT", "UF-INSTANT", sfp_quirk_ubnt_uf_instant), -- 2.51.0