Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net: sfp: add quirk for Potron SFP+ XGSPON ONU Stick

Add quirk for Potron SFP+ XGSPON ONU Stick (YV SFP+ONT-XGSPON).

This device uses pins 2 and 7 for UART communication, so disable
TX_FAULT and LOS. Additionally as it is an embedded system in an
SFP+ form factor provide it enough time to fully boot before we
attempt to use it.

https://www.potrontec.com/index/index/list/cat_id/2.html#11-83
https://pon.wiki/xgs-pon/ont/potron-technology/x-onu-sfpp/

Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
Link: https://patch.msgid.link/20250617180324.229487-1-macroalpha82@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Chris Morgan and committed by
Jakub Kicinski
dfec1c14 2c04d279

+20 -1
+20 -1
drivers/net/phy/sfp.c
··· 361 361 sfp->state_ignore_mask |= SFP_F_TX_FAULT; 362 362 } 363 363 364 + static void sfp_fixup_ignore_hw(struct sfp *sfp, unsigned int mask) 365 + { 366 + sfp->state_hw_mask &= ~mask; 367 + } 368 + 364 369 static void sfp_fixup_nokia(struct sfp *sfp) 365 370 { 366 371 sfp_fixup_long_startup(sfp); ··· 414 409 * these are possibly used for other purposes on this 415 410 * module, e.g. a serial port. 416 411 */ 417 - sfp->state_hw_mask &= ~(SFP_F_TX_FAULT | SFP_F_LOS); 412 + sfp_fixup_ignore_hw(sfp, SFP_F_TX_FAULT | SFP_F_LOS); 413 + } 414 + 415 + static void sfp_fixup_potron(struct sfp *sfp) 416 + { 417 + /* 418 + * The TX_FAULT and LOS pins on this device are used for serial 419 + * communication, so ignore them. Additionally, provide extra 420 + * time for this device to fully start up. 421 + */ 422 + 423 + sfp_fixup_long_startup(sfp); 424 + sfp_fixup_ignore_hw(sfp, SFP_F_TX_FAULT | SFP_F_LOS); 418 425 } 419 426 420 427 static void sfp_fixup_rollball_cc(struct sfp *sfp) ··· 528 511 // Rollball protocol to talk to the PHY. 529 512 SFP_QUIRK_F("Walsun", "HXSX-ATRC-1", sfp_fixup_fs_10gt), 530 513 SFP_QUIRK_F("Walsun", "HXSX-ATRI-1", sfp_fixup_fs_10gt), 514 + 515 + SFP_QUIRK_F("YV", "SFP+ONU-XGSPON", sfp_fixup_potron), 531 516 532 517 // OEM SFP-GE-T is a 1000Base-T module with broken TX_FAULT indicator 533 518 SFP_QUIRK_F("OEM", "SFP-GE-T", sfp_fixup_ignore_tx_fault),