[PATCH net-next v2] net: sfp: add 2500base-X quirk for ODI DFP-34X-2C3

From: github

Date: Tue Nov 17 2026 - 22:45:29 EST


From: Israel Cueto <github@xxxxxxxxxxxxxx>

The ODI DFP-34X-2C3 XPON SFP module supports 2500Base-X.

Add a quirk to enable 2500Base-X support for this module.

Tested on a Horaco ZX-SWTGW2C8F switch with an ODI
DFP-34X-2C3 module. A 2500 Mb/s link was established
with speed and duplex forced and autonegotiation disabled.

Signed-off-by: Israel Cueto <github@xxxxxxxxxxxxxx>
---
Changes in v2:
- Move the ODI quirk to its alphabetical position.

drivers/net/phy/sfp.c | 3 +++
1 file changed, 3 insertions(+)

diff --git a/drivers/net/phy/sfp.c b/drivers/net/phy/sfp.c
index 915156743..960ac89cc 100644
--- a/drivers/net/phy/sfp.c
+++ b/drivers/net/phy/sfp.c
@@ -614,6 +614,9 @@ static const struct sfp_quirk sfp_quirks[] = {
SFP_QUIRK("Lantech", "8330-265D", sfp_quirk_2500basex,
sfp_fixup_ignore_los),

+ // ODI DFP-34X-2C3 XPON stick can operate at 2500base-X
+ SFP_QUIRK_S("ODI", "DFP-34X-2C3", sfp_quirk_2500basex),
+
SFP_QUIRK_S("UBNT", "UF-INSTANT", sfp_quirk_ubnt_uf_instant),

// Walsun HXSX-ATR[CI]-1 don't identify as copper, and use the
--
2.34.1