Skip to content

Commit 1833e16

Browse files
logicoggregkh
authored andcommitted
net: sfp: add quirk for 2.5G OEM BX SFP
[ Upstream commit a850355 ] The OEM SFP-2.5G-BX10-D/U SFP module pair is meant to operate with 2500Base-X. However, in their EEPROM they incorrectly specify: Transceiver codes : 0x00 0x12 0x00 0x00 0x12 0x00 0x01 0x05 0x00 BR, Nominal : 2500MBd Use sfp_quirk_2500basex for this module to allow 2500Base-X mode anyway. Tested on BananaPi R3. Signed-off-by: Birger Koblitz <mail@birger-koblitz.de> Reviewed-by: Daniel Golle <daniel@makrotopia.org> Link: https://patch.msgid.link/20250218-b4-lkmsub-v1-1-1e51dcabed90@birger-koblitz.de Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 04c0c55 commit 1833e16

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/net/phy/sfp.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,8 @@ static const struct sfp_quirk sfp_quirks[] = {
515515

516516
SFP_QUIRK_F("OEM", "SFP-10G-T", sfp_fixup_rollball_cc),
517517
SFP_QUIRK_M("OEM", "SFP-2.5G-T", sfp_quirk_oem_2_5g),
518+
SFP_QUIRK_M("OEM", "SFP-2.5G-BX10-D", sfp_quirk_2500basex),
519+
SFP_QUIRK_M("OEM", "SFP-2.5G-BX10-U", sfp_quirk_2500basex),
518520
SFP_QUIRK_F("OEM", "RTSFP-10", sfp_fixup_rollball_cc),
519521
SFP_QUIRK_F("OEM", "RTSFP-10G", sfp_fixup_rollball_cc),
520522
SFP_QUIRK_F("Turris", "RTSFP-2.5G", sfp_fixup_rollball),

0 commit comments

Comments
 (0)