diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2016-11-15 10:06:33 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-11-15 16:33:35 -0500 |
commit | fc5e353cd1a7d51cdf4159c71b5c367a2413abc3 (patch) | |
tree | f1f374042fb0a4d348e95a4049468a396d96deb2 /drivers/net/ethernet/marvell/mv643xx_eth.c | |
parent | 42469bf5d9bb9fe5e2ab28f18a5d39776797f026 (diff) | |
download | linux-fc5e353cd1a7d51cdf4159c71b5c367a2413abc3.tar.gz linux-fc5e353cd1a7d51cdf4159c71b5c367a2413abc3.tar.bz2 linux-fc5e353cd1a7d51cdf4159c71b5c367a2413abc3.zip |
net: mv643xx_eth: Utilize phy_ethtool_nway_reset
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/marvell/mv643xx_eth.c')
-rw-r--r-- | drivers/net/ethernet/marvell/mv643xx_eth.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/net/ethernet/marvell/mv643xx_eth.c b/drivers/net/ethernet/marvell/mv643xx_eth.c index 81b08d71c0f8..5f62c3d70df9 100644 --- a/drivers/net/ethernet/marvell/mv643xx_eth.c +++ b/drivers/net/ethernet/marvell/mv643xx_eth.c @@ -1639,14 +1639,6 @@ static void mv643xx_eth_get_drvinfo(struct net_device *dev, strlcpy(drvinfo->bus_info, "platform", sizeof(drvinfo->bus_info)); } -static int mv643xx_eth_nway_reset(struct net_device *dev) -{ - if (!dev->phydev) - return -EINVAL; - - return genphy_restart_aneg(dev->phydev); -} - static int mv643xx_eth_get_coalesce(struct net_device *dev, struct ethtool_coalesce *ec) { @@ -1770,7 +1762,7 @@ static int mv643xx_eth_get_sset_count(struct net_device *dev, int sset) static const struct ethtool_ops mv643xx_eth_ethtool_ops = { .get_drvinfo = mv643xx_eth_get_drvinfo, - .nway_reset = mv643xx_eth_nway_reset, + .nway_reset = phy_ethtool_nway_reset, .get_link = ethtool_op_get_link, .get_coalesce = mv643xx_eth_get_coalesce, .set_coalesce = mv643xx_eth_set_coalesce, |