sfp: improve support for direct-attach copper cables
authorRussell King <rmk+kernel@armlinux.org.uk>
Fri, 29 Dec 2017 12:15:28 +0000 (12:15 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 3 Jan 2018 02:45:32 +0000 (21:45 -0500)
commitf10fcbcf91006a3223cffbc413b5abe17cf46937
treeb33bde0471067834d32d6e7c8950191804efe3f3
parent9962acf7fb8c5c5a28e137d2102ee81b51b4111b
sfp: improve support for direct-attach copper cables

Improve the support for direct-attach copper so that we avoid kernel
warning messages, and report the appropriate PORT_DA type to userspace.
Direct Attach cables can use a number of protocols depending on their
range of speeds.

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
include/linux/sfp.h