summaryrefslogtreecommitdiff
path: root/include/uapi/linux/virtio_gpu.h
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@armlinux.org.uk>2021-01-10 10:58:32 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-04-16 11:38:15 +0200
commit434192ad69b7bcca934e04b68d6e23cb354c3449 (patch)
tree41044d129cb01c9c8201f8ac9d4f5e20ce35e245 /include/uapi/linux/virtio_gpu.h
parentf8d2282512c0d95824d1d9640f117619a25bba10 (diff)
net: sfp: cope with SFPs that set both LOS normal and LOS inverted
commit 624407d2cf14ff58e53bf4b2af9595c4f21d606e upstream. The SFP MSA defines two option bits in byte 65 to indicate how the Rx_LOS signal on SFP pin 8 behaves: bit 2 - Loss of Signal implemented, signal inverted from standard definition in SFP MSA (often called "Signal Detect"). bit 1 - Loss of Signal implemented, signal as defined in SFP MSA (often called "Rx_LOS"). Clearly, setting both bits results in a meaningless situation: it would mean that LOS is implemented in both the normal sense (1 = signal loss) and inverted sense (0 = signal loss). Unfortunately, there are modules out there which set both bits, which will be initially interpret as "inverted" sense, and then, if the LOS signal changes state, we will toggle between LINK_UP and WAIT_LOS states. Change our LOS handling to give well defined behaviour: only interpret these bits as meaningful if exactly one is set, otherwise treat it as if LOS is not implemented. Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Link: https://lore.kernel.org/r/E1kyYQa-0004iR-CU@rmk-PC.armlinux.org.uk Signed-off-by: Jakub Kicinski <kuba@kernel.org> Cc: Pali Rohár <pali@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/uapi/linux/virtio_gpu.h')
0 files changed, 0 insertions, 0 deletions