]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
phylink,sfp: negotiate interface format with MAC
authorRussell King <rmk+kernel@armlinux.org.uk>
Tue, 27 Feb 2018 15:53:02 +0000 (15:53 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Feb 2018 16:07:11 +0000 (11:07 -0500)
commita9c79364df324a69ba1b71accd5b8a3155e570ac
tree73786bc66ac55fff0a496faf8f928978a2966fb4
parent03145864bd0fcac29e33442f39d67d4f28b0777c
phylink,sfp: negotiate interface format with MAC

Negotiate the interface format with the MAC rather than requiring it to
be a fixed type specified solely by the SFP module.  This allows modules
that can work with several different interface signalling formats to
select a format compatible with the MAC - for example, a Fiber module
supporing Gigabit ethernet and faster connected to a Gigabit only MAC
needs to select the 1000BASE-X mode.

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