]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: sfp: add quirk for 2.5G OEM BX SFP
authorBirger Koblitz <mail@birger-koblitz.de>
Tue, 18 Feb 2025 17:59:40 +0000 (18:59 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 20 Apr 2025 08:15:19 +0000 (10:15 +0200)
commit1833e165005928eeee00d450b7c906e91ea5ffaa
tree3af679199e4c2273dd740a471d89190cab44c08e
parent04c0c555049fc7aec7c72011b5fe33c8f4b7a48a
net: sfp: add quirk for 2.5G OEM BX SFP

[ Upstream commit a85035561025063125f81090e4f2bd65da368c83 ]

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>
drivers/net/phy/sfp.c