]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita86d7cf50c82942a0c384cc0501d65e61df203d9
treecfb398d457f839ce9ea7a9ab8f03024e49bf830e
parentf93c86e746f1536f337ed5e53a698bb104af49f1
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