net: sfp: add some quirks for GPON modules
authorRussell King <rmk+kernel@armlinux.org.uk>
Wed, 20 Nov 2019 11:42:47 +0000 (11:42 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Jul 2020 07:32:03 +0000 (09:32 +0200)
commitd3205c26035d7afb0554b50636c083a2da13f4c4
tree022144a30683c031d2ac77de5c0f7c9dcfef3fc7
parent6772d3299cf52d003c6e411de1d839bdb803a2a5
net: sfp: add some quirks for GPON modules

[ Upstream commit b0eae33b2583dceb36224619f9fd85e6140ae594 ]

Marc Micalizzi reports that Huawei MA5671A and Alcatel/Lucent G-010S-P
modules are capable of 2500base-X, but incorrectly report their
capabilities in the EEPROM.  It seems rather common that GPON modules
mis-report.

Let's fix these modules by adding some quirks.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/phy/sfp-bus.c