From: Florian Fainelli Date: Tue, 15 Nov 2016 19:19:45 +0000 (-0800) Subject: net: stmmac: Implement ethtool::nway_reset X-Git-Tag: v4.14-rc1~1973^2~254^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cab247e9dfae4da574b2b2a5ff22da9c3a94f1d7;p=platform%2Fkernel%2Flinux-rpi3.git net: stmmac: Implement ethtool::nway_reset Utilize the generic phy_ethtool_nway_reset() helper function to implement an autonegotiation restart. Signed-off-by: Florian Fainelli Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c index 3fe9340..0290d52 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c @@ -870,6 +870,7 @@ static const struct ethtool_ops stmmac_ethtool_ops = { .get_regs = stmmac_ethtool_gregs, .get_regs_len = stmmac_ethtool_get_regs_len, .get_link = ethtool_op_get_link, + .nway_reset = phy_ethtool_nway_reset, .get_pauseparam = stmmac_get_pauseparam, .set_pauseparam = stmmac_set_pauseparam, .get_ethtool_stats = stmmac_get_ethtool_stats,