1 From: Russell King <rmk+kernel@arm.linux.org.uk>
2 Date: Thu, 1 Oct 2015 19:40:31 +0100
3 Subject: [PATCH] net: mvneta: add nway_reset support
5 Add ethtool nway_reset support to mvneta via phylink, so that userspace
6 can request the link in whatever mode to be renegotiated via
9 Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
12 --- a/drivers/net/ethernet/marvell/mvneta.c
13 +++ b/drivers/net/ethernet/marvell/mvneta.c
14 @@ -3616,6 +3616,13 @@ mvneta_ethtool_get_link_ksettings(struct
15 return phylink_ethtool_ksettings_get(pp->phylink, cmd);
18 +static int mvneta_ethtool_nway_reset(struct net_device *dev)
20 + struct mvneta_port *pp = netdev_priv(dev);
22 + return phylink_ethtool_nway_reset(pp->phylink);
25 /* Set interrupt coalescing for ethtools */
26 static int mvneta_ethtool_set_coalesce(struct net_device *dev,
27 struct ethtool_coalesce *c)
28 @@ -3889,6 +3896,7 @@ static const struct net_device_ops mvnet
31 const struct ethtool_ops mvneta_eth_tool_ops = {
32 + .nway_reset = mvneta_ethtool_nway_reset,
33 .get_link = ethtool_op_get_link,
34 .set_coalesce = mvneta_ethtool_set_coalesce,
35 .get_coalesce = mvneta_ethtool_get_coalesce,