]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
sfp: fix RX_LOS signal handling
authorRussell King <rmk+kernel@armlinux.org.uk>
Thu, 30 Nov 2017 13:59:11 +0000 (13:59 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Dec 2017 20:18:41 +0000 (15:18 -0500)
commitacf1c02f023926b8b04672a9e81b1711ae681619
tree03265931c7b76834810d2a990d1a7a9e55a20552
parenta0da456bbf95d2a9294799bb05c61bfb24736bb7
sfp: fix RX_LOS signal handling

The options word is a be16 quantity, so we need to test the flags
having converted the endian-ness.  Convert the flag bits to be16,
which can be optimised by the compiler, rather than converting a
variable at runtime.

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