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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Nov 2019 06:28:52 +0000 (22:28 -0800)
commitb0eae33b2583dceb36224619f9fd85e6140ae594
tree3b385a59d7e7d61a7f41364a5227c5811772c8d4
parentb34bb2cb5b62c7397c28fcc335e8047a687eada4
net: sfp: add some quirks for GPON modules

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>
drivers/net/phy/sfp-bus.c