sfp/phylink: move module EEPROM ethtool access into netdev core ethtool
authorRussell King <rmk+kernel@armlinux.org.uk>
Wed, 28 Mar 2018 22:44:16 +0000 (15:44 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Mar 2018 14:11:06 +0000 (10:11 -0400)
commite679c9c1dbfdba07b2a979a076cca74b773be8ce
tree25a3a118ff28a51f1cedd552c4090b48f2fe5560
parentc6ab3008b6a6ecda22e92f96a1b9cc6b0d0b0a4e
sfp/phylink: move module EEPROM ethtool access into netdev core ethtool

Provide a pointer to the SFP bus in struct net_device, so that the
ethtool module EEPROM methods can access the SFP directly, rather
than needing every user to provide a hook for it.

Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvneta.c
drivers/net/phy/phylink.c
drivers/net/phy/sfp-bus.c
include/linux/netdevice.h
include/linux/phylink.h
net/core/ethtool.c