sfp: allow cotsworks modules
authorRussell King <rmk+kernel@armlinux.org.uk>
Wed, 28 Mar 2018 10:18:25 +0000 (11:18 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 29 Mar 2018 18:30:41 +0000 (14:30 -0400)
commit981f1f803516666d3e02f1d707a7f4b0ebf41967
treecfb398d457f839ce9ea7a9ab8f03024e49bf830e
parent5593e3340f32f43eede742a96cbf9603fbe6003b
sfp: allow cotsworks modules

Cotsworks modules fail the checksums - it appears that Cotsworks
reprograms the EEPROM at the end of production with the final product
information (serial, date code, and exact part number for module
options) and fails to update the checksum.

Work around this by detecting the Cotsworks name in the manufacturer
field, and reducing the checksum failures to warnings rather than a
hard error.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/sfp.c