]> git.baikalelectronics.ru Git - kernel.git/commit
sfp: improve RX_LOS handling
authorRussell King <rmk+kernel@armlinux.org.uk>
Thu, 30 Nov 2017 13:59:16 +0000 (13:59 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Dec 2017 20:18:42 +0000 (15:18 -0500)
commitca9d166abbb2d8dfb30b441b37e071ff0be1542c
treef222b7ac19317e981b325d0c8fdc53fb543b9039
parent1a2c56f0b22f4574171c5cb56448f84482192878
sfp: improve RX_LOS handling

There are two bits in the option word for the RX_LOS signal.  One
reports that the RX_LOS signal is active high, the other reports that
it is active low.  When both or neither are set, the result is not
well defined in the specification.

Rather than assuming that neither set means normal RX_LOS, take this
as meaning no RX_LOS signal available, thereby ignoring the signal.

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