* [PATCH 6.6.y] net: sfp: add quirk for Lantech 8330-265D
@ 2026-11-22 22:07 Josef Schlehofer
2026-11-24 0:11 ` Sasha Levin
0 siblings, 1 reply; 2+ messages in thread
From: Josef Schlehofer @ 2026-11-22 22:07 UTC (permalink / raw)
To: stable; +Cc: Marek Behún, Jakub Kicinski
From: Marek Behún <kabel@kernel.org>
[ 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 <kabel@kernel.org>
Link: https://patch.msgid.link/20260128170044.15576-1-kabel@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
[ 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 <pepe.schlehofer@gmail.com>
---
The upstream commit is in 6.12.y and 6.18.y, but it does not apply
to 6.6.y. Build-tested on 6.6.162 for arm and arm64.
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 38ab35e57127cd6863c7682e8260781dc6350f2c..e6fa6020ea81172d83fac9c63190bd1fe16b506e 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.54.0 (Apple Git-157)
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-24 0:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-22 22:07 [PATCH 6.6.y] net: sfp: add quirk for Lantech 8330-265D Josef Schlehofer
2026-11-24 0:11 ` Sasha Levin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox