Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net: sfp: add quirk for Lantech 8330-265D

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>

authored by

Marek Behún and committed by
Jakub Kicinski
86a8e8e0 988719c5

+6 -2
+6 -2
drivers/net/phy/sfp.c
··· 530 530 SFP_QUIRK("HUAWEI", "MA5671A", sfp_quirk_2500basex, 531 531 sfp_fixup_ignore_tx_fault), 532 532 533 - // Lantech 8330-262D-E can operate at 2500base-X, but incorrectly report 534 - // 2500MBd NRZ in their EEPROM 533 + // Lantech 8330-262D-E and 8330-265D can operate at 2500base-X, but 534 + // incorrectly report 2500MBd NRZ in their EEPROM. 535 + // Some 8330-265D modules have inverted LOS, while all of them report 536 + // normal LOS in EEPROM. Therefore we need to ignore LOS entirely. 535 537 SFP_QUIRK_S("Lantech", "8330-262D-E", sfp_quirk_2500basex), 538 + SFP_QUIRK("Lantech", "8330-265D", sfp_quirk_2500basex, 539 + sfp_fixup_ignore_los), 536 540 537 541 SFP_QUIRK_S("UBNT", "UF-INSTANT", sfp_quirk_ubnt_uf_instant), 538 542