From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S941370AbcKQRZX (ORCPT ); Thu, 17 Nov 2016 12:25:23 -0500 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:33866 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934126AbcKQRZU (ORCPT ); Thu, 17 Nov 2016 12:25:20 -0500 Subject: Re: [PATCH net-next 1/5] net: stmmac: Implement ethtool::nway_reset To: Florian Fainelli , References: <20161115191949.15361-1-f.fainelli@gmail.com> <20161115191949.15361-2-f.fainelli@gmail.com> CC: , , , Alexandre Torgue , open list From: Giuseppe CAVALLARO Message-ID: <53bc6ffe-77ef-09bd-de91-1b744c52cf16@st.com> Date: Thu, 17 Nov 2016 17:38:38 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 In-Reply-To: <20161115191949.15361-2-f.fainelli@gmail.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.52.139.54] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-11-17_09:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/15/2016 8:19 PM, Florian Fainelli wrote: > Utilize the generic phy_ethtool_nway_reset() helper function to > implement an autonegotiation restart. > > Signed-off-by: Florian Fainelli Acked-by: Giuseppe Cavallaro > --- > drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c > index 3fe9340b748f..0290d52330da 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, >