Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965010AbcKOTVT (ORCPT ); Tue, 15 Nov 2016 14:21:19 -0500 Received: from mail-pg0-f65.google.com ([74.125.83.65]:33687 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933958AbcKOTUV (ORCPT ); Tue, 15 Nov 2016 14:20:21 -0500 From: Florian Fainelli To: netdev@vger.kernel.org Cc: davem@davemloft.net, andrew@lunn.ch, tremyfr@gmail.com, Florian Fainelli , Tobias Klauser , Colin Ian King , linux-kernel@vger.kernel.org (open list) Subject: [PATCH net-next 2/5] net: ethoc: Implement ethtool::nway_reset Date: Tue, 15 Nov 2016 11:19:46 -0800 Message-Id: <20161115191949.15361-3-f.fainelli@gmail.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20161115191949.15361-1-f.fainelli@gmail.com> References: <20161115191949.15361-1-f.fainelli@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 804 Lines: 22 Implement ethtool::nway_reset using phy_ethtool_nway_reset. We are already using dev->phydev all over the place so this comes for free. Signed-off-by: Florian Fainelli --- drivers/net/ethernet/ethoc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/ethoc.c b/drivers/net/ethernet/ethoc.c index c044667a0a25..6456c180114b 100644 --- a/drivers/net/ethernet/ethoc.c +++ b/drivers/net/ethernet/ethoc.c @@ -966,6 +966,7 @@ static int ethoc_set_ringparam(struct net_device *dev, const struct ethtool_ops ethoc_ethtool_ops = { .get_regs_len = ethoc_get_regs_len, .get_regs = ethoc_get_regs, + .nway_reset = phy_ethtool_nway_reset, .get_link = ethtool_op_get_link, .get_ringparam = ethoc_get_ringparam, .set_ringparam = ethoc_set_ringparam, -- 2.9.3