]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd911e26b062b055e3ccb381cd498d9c4447af811
treee5bcc42aa282197f88db8bbb0bdb9f34e621ed33
parent4d029e866dd7bf3b8de61bab0adf12e8cd47e108
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