]> www.infradead.org Git - users/dwmw2/linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 May 2022 08:23:45 +0000 (10:23 +0200)
commit3abbfac1ab24cf22e5a076e772fc7f204bfcc687
tree8cf8a7fd552a318cc20256442a3184aab96b5e24
parent48f1dd67a83fb83130db4d3dee93cf2b7d7ec939
net: sfp: Add tx-fault workaround for Huawei MA5671A SFP ONT

[ Upstream commit 2069624dac19d62c558bb6468fe03678553ab01d ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/phy/sfp.c