[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <9235D6609DB808459E95D78E17F2E43D40965345@CHN-SV-EXMX02.mchp-main.com>
Date: Tue, 15 Nov 2016 18:14:57 +0000
From: <Woojung.Huh@...rochip.com>
To: <f.fainelli@...il.com>, <netdev@...r.kernel.org>
CC: <davem@...emloft.net>, <andrew@...n.ch>, <tremyfr@...il.com>,
<UNGLinuxDriver@...rochip.com>, <linux-usb@...r.kernel.org>,
<linux-kernel@...r.kernel.org>
Subject: RE: [PATCH 15/15] net: usb: lan78xx: Utilize phy_ethtool_nway_reset
> Signed-off-by: Florian Fainelli <f.fainelli@...il.com>
> ---
> drivers/net/usb/lan78xx.c | 7 +------
> 1 file changed, 1 insertion(+), 6 deletions(-)
>
> diff --git a/drivers/net/usb/lan78xx.c b/drivers/net/usb/lan78xx.c
> index bcd9010c1f27..cf2857fa938f 100644
> --- a/drivers/net/usb/lan78xx.c
> +++ b/drivers/net/usb/lan78xx.c
> @@ -1447,11 +1447,6 @@ static u32 lan78xx_get_link(struct net_device *net)
> return net->phydev->link;
> }
>
> -static int lan78xx_nway_reset(struct net_device *net)
> -{
> - return phy_start_aneg(net->phydev);
> -}
> -
> static void lan78xx_get_drvinfo(struct net_device *net,
> struct ethtool_drvinfo *info)
> {
> @@ -1655,7 +1650,7 @@ static int lan78xx_set_pause(struct net_device
> *net,
>
> static const struct ethtool_ops lan78xx_ethtool_ops = {
> .get_link = lan78xx_get_link,
> - .nway_reset = lan78xx_nway_reset,
> + .nway_reset = phy_ethtool_nway_reset,
> .get_drvinfo = lan78xx_get_drvinfo,
> .get_msglevel = lan78xx_get_msglevel,
> .set_msglevel = lan78xx_set_msglevel,
> --
> 2.9.3
Acked-by: Woojung Huh <woojung.huh@...rochip.com>
Powered by blists - more mailing lists