OSDN Git Service

net: phy: sfp: Cotsworks SFF module EEPROM fixup
authorChris Healy <cphealy@gmail.com>
Tue, 14 Jul 2020 17:59:10 +0000 (10:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Jul 2020 17:32:59 +0000 (10:32 -0700)
commitb18432c5a49c9413fd3afb717b378e08cb71331b
treee5bcc42aa282197f88db8bbb0bdb9f34e621ed33
parentbba238ed037c60242332dd1e4c5778af9eba4d9b
net: phy: sfp: Cotsworks SFF module EEPROM fixup

Some Cotsworks SFF have invalid data in the first few bytes of the
module EEPROM.  This results in these modules not being detected as
valid modules.

Address this by poking the correct EEPROM values into the module
EEPROM when the model/PN match and the existing module EEPROM contents
are not correct.

Signed-off-by: Chris Healy <cphealy@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/sfp.c