]> 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)
commit2b40635026bfba742925df0eafabf3b31abdb406
treecfb398d457f839ce9ea7a9ab8f03024e49bf830e
parent4baaf88e14ad24b9da89b8c054d8f7d87e0e4bf1
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