net: sfp: VSOL V2801F / CarlitoxxPro CPGOS03-0490 v2.0 workaround
authorRussell King <rmk+kernel@armlinux.org.uk>
Wed, 9 Dec 2020 11:22:49 +0000 (11:22 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 7 Mar 2021 11:34:17 +0000 (12:34 +0100)
commit113bcb8f65d47c8a143a15035d8865117778e288
tree6be5226869ea4a3a68bb5264128a10ae2de7ae79
parentd0fcadd6b9a3549bb4e48b17b1ff458c6e8ef658
net: sfp: VSOL V2801F / CarlitoxxPro CPGOS03-0490 v2.0 workaround

[ Upstream commit 0d035bed2a4a6c4878518749348be61bf082d12a ]

Add a workaround for the detection of VSOL V2801F / CarlitoxxPro
CPGOS03-0490 v2.0 GPON module which CarlitoxxPro states needs single
byte I2C reads to the EEPROM.

Pali Rohár reports that he also has a CarlitoxxPro-based V2801F module,
which reports a manufacturer of "OEM". This manufacturer can't be
matched as it appears in many different modules, so also match the part
number too.

Reported-by: Thomas Schreiber <tschreibe@gmail.com>
Reported-by: Pali Rohár <pali@kernel.org>
Tested-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/phy/sfp.c