sfp: support 1G BiDi (eg, FiberStore SFP-GE-BX) modules
authorRussell King <rmk+kernel@armlinux.org.uk>
Tue, 27 Feb 2018 15:52:57 +0000 (15:52 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Feb 2018 16:07:11 +0000 (11:07 -0500)
commit03145864bd0fcac29e33442f39d67d4f28b0777c
treeef7dea10a328ff159c875fd6d3dbb7963d063756
parent44d15d930bb8463d10b05bbed45e881e5055495a
sfp: support 1G BiDi (eg, FiberStore SFP-GE-BX) modules

Some BiDi modules (eg, FiberStore SFP-GE-BX) are not compliant with
1000BASE-BX as they use different wavelengths from the 1000BASE-BX
standard (eg, 1310nm/1550nm rather than 1310nm/1490nm).  These modules
support 1000BASE-X ethernet, so detect them by a failure to find any
other support, the 8B10B encoding and a bit rate that falls within the
1Gbps window.

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