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 465D429A9C8 for ; Wed, 28 Jan 2026 17:00:50 +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=1769619650; cv=none; b=fdP0Tl0Srx7p2t/GK8NseDXDaM1u6iedwW2gvmDedFNpsQX/HDs8G2iZHQtBtQ4zgup4HtjJdoYa7XUJujDPUrLj3r589LL/wFnoF9lXkVTz4EeUgOE4i1zLxcdUIYqSW726hreEI9PkkPLwIj4S+SrdIJKmtH7YHUOa8xwgJSU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769619650; c=relaxed/simple; bh=rg6AtoBkuEsKAhSf+xlIls5ssn0QYilU2CZz4fWEzrA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=jLxfpoMmTK2y6UhZYgK7aZMx/jLiJ+vuhQHGby3wboYsxXIpGKlkvDp7ciDLRm1LNNaHK4oF3XYo7dwVMMhixBlPWnEjfEY2xs1WgoHiCj9T15acmtxrmBAFv4dbZ/VOmnSSf0BMOJI7D5iK6IDlEbnbE+Ti49WPr1V1hNm0Ur0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ENZnNNTq; 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="ENZnNNTq" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DAFEEC4CEF1; Wed, 28 Jan 2026 17:00:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1769619650; bh=rg6AtoBkuEsKAhSf+xlIls5ssn0QYilU2CZz4fWEzrA=; h=From:To:Cc:Subject:Date:From; b=ENZnNNTqNY/Ogd3Q+DVhK+C6L7+CxJuDJXmeLS2GLe2QcHwLh9PcILKl/w5OjooH4 EHIDMB2cKF7fNy/z17Lv+fZ1lu2xdnF2goew2dCWGUv4AbgaGodwCTBz8qZBvnEbFR /z4pGJHmGIBpaFHA09nkqW4anVJ32w8SAqz/EGOx2xS5idxPMSxn2bNjGcYdasrBIQ CxZguk/zBxAeGu+L5w72dOH3bIM4qtbxi7MAOPng6iNuI7KQrHCFt2JfMTkFxTbP7j 5Ztx3shejSTZDLRWtaPipZBd+2N2JLg9AT4Ec2YLvjNBqNTdp4c4JRyjZUMh9fOGa2 l2t3l0IBV80Fw== From: =?UTF-8?q?Marek=20Beh=C3=BAn?= To: netdev@vger.kernel.org, Russell King Cc: Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" , Heiner Kallweit , Andrew Lunn , =?UTF-8?q?Marek=20Beh=C3=BAn?= Subject: [PATCH net-next] net: sfp: add quirk for Lantech 8330-265D Date: Wed, 28 Jan 2026 18:00:44 +0100 Message-ID: <20260128170044.15576-1-kabel@kernel.org> X-Mailer: git-send-email 2.52.0 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- 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 47f095bd91ce..4746a8af3a8d 100644 --- a/drivers/net/phy/sfp.c +++ b/drivers/net/phy/sfp.c @@ -530,9 +530,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.52.0