]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
net: sfp: change quirks for Alcatel Lucent G-010S-P
authorShengyu Qu <wiagn233@outlook.com>
Fri, 11 Oct 2024 17:39:17 +0000 (01:39 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Mon, 21 Oct 2024 08:33:22 +0000 (10:33 +0200)
Seems Alcatel Lucent G-010S-P also have the same problem that it uses
TX_FAULT pin for SOC uart. So apply sfp_fixup_ignore_tx_fault to it.

Signed-off-by: Shengyu Qu <wiagn233@outlook.com>
Link: https://patch.msgid.link/TYCPR01MB84373677E45A7BFA5A28232C98792@TYCPR01MB8437.jpnprd01.prod.outlook.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/phy/sfp.c

index 7851bfad35722c6381de63abb6c0264e4adbde10..7dbcbf0a4ee26a221e9c47a6f030c8a18317bdbb 100644 (file)
@@ -466,7 +466,8 @@ static void sfp_quirk_ubnt_uf_instant(const struct sfp_eeprom_id *id,
 static const struct sfp_quirk sfp_quirks[] = {
        // Alcatel Lucent G-010S-P can operate at 2500base-X, but incorrectly
        // report 2500MBd NRZ in their EEPROM
-       SFP_QUIRK_M("ALCATELLUCENT", "G010SP", sfp_quirk_2500basex),
+       SFP_QUIRK("ALCATELLUCENT", "G010SP", sfp_quirk_2500basex,
+                 sfp_fixup_ignore_tx_fault),
 
        // Alcatel Lucent G-010S-A can operate at 2500base-X, but report 3.2GBd
        // NRZ in their EEPROM