]> git.baikalelectronics.ru Git - kernel.git/commit
net: sfp: Add tx-fault workaround for Huawei MA5671A SFP ONT
authorMatthew Hagan <mnhagan88@gmail.com>
Mon, 2 May 2022 22:33:15 +0000 (23:33 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 3 May 2022 23:53:39 +0000 (16:53 -0700)
commit3fdee1dbef7456a26c96ccffb48f3755e53d41fe
tree2e6055446386d427d9a2d8b896972a8b103e7bd3
parentd6d7567c341950a0c958647e146f939947163464
net: sfp: Add tx-fault workaround for Huawei MA5671A SFP ONT

As noted elsewhere, various GPON SFP modules exhibit non-standard
TX-fault behaviour. In the tested case, the Huawei MA5671A, when used
in combination with a Marvell mv88e6085 switch, was found to
persistently assert TX-fault, resulting in the module being disabled.

This patch adds a quirk to ignore the SFP_F_TX_FAULT state, allowing the
module to function.

Change from v1: removal of erroneous return statment (Andrew Lunn)

Signed-off-by: Matthew Hagan <mnhagan88@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20220502223315.1973376-1-mnhagan88@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/sfp.c