net: sfp: add quirk for Lantech 8330-265D
PATCH 1/1 net: sfp: add quirk for Lantech 8330-265D
From: Marek Behún <[email protected]>
[ 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.
[ 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. ]
---
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(-)
drivers/net/phy/sfp.c +6 -2
@@ -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),
Signature · 1 line
2.54.0 (Apple Git-157)
Quoted 2 lines
Similar to Lantech 8330-262D-E, the Lantech 8330-265D also reports 2500MBd instead of 3125MBd.
Queued for 6.6, thanks.
Signature · 2 lines
Thanks, Sasha