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)
commit2069624dac19d62c558bb6468fe03678553ab01d
tree2e6055446386d427d9a2d8b896972a8b103e7bd3
parent3a58f13a881ed351198ffab4cf9953cf19d2ab3a
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