Skip to content

Commit 0616792

Browse files
mwallegregkh
authored andcommitted
net: sfp: add 2500base-X quirk for Lantech SFP module
[ Upstream commit 00eec9f ] The Lantech 8330-262D-E module is 2500base-X capable, but it reports the nominal bitrate as 2500MBd instead of 3125MBd. Add a quirk for the module. The following in an EEPROM dump of such a SFP with the serial number redacted: 00: 03 04 07 00 00 00 01 20 40 0c 05 01 19 00 00 00 ???...? @????... 10: 1e 0f 00 00 4c 61 6e 74 65 63 68 20 20 20 20 20 ??..Lantech 20: 20 20 20 20 00 00 00 00 38 33 33 30 2d 32 36 32 ....8330-262 30: 44 2d 45 20 20 20 20 20 56 31 2e 30 03 52 00 cb D-E V1.0?R.? 40: 00 1a 00 00 46 43 XX XX XX XX XX XX XX XX XX XX .?..FCXXXXXXXXXX 50: 20 20 20 20 32 32 30 32 31 34 20 20 68 b0 01 98 220214 h??? 60: 45 58 54 52 45 4d 45 4c 59 20 43 4f 4d 50 41 54 EXTREMELY COMPAT 70: 49 42 4c 45 20 20 20 20 20 20 20 20 20 20 20 20 IBLE Signed-off-by: Michael Walle <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Paolo Abeni <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent 459e568 commit 0616792

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/net/phy/sfp-bus.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,12 @@ static const struct sfp_quirk sfp_quirks[] = {
7474
.vendor = "HUAWEI",
7575
.part = "MA5671A",
7676
.modes = sfp_quirk_2500basex,
77+
}, {
78+
// Lantech 8330-262D-E can operate at 2500base-X, but
79+
// incorrectly report 2500MBd NRZ in their EEPROM
80+
.vendor = "Lantech",
81+
.part = "8330-262D-E",
82+
.modes = sfp_quirk_2500basex,
7783
}, {
7884
.vendor = "UBNT",
7985
.part = "UF-INSTANT",

0 commit comments

Comments
 (0)