From patchwork Tue Nov 15 18:06:41 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 695180 X-Patchwork-Delegate: scottwood@freescale.com Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3tJFtx0gyfz9rxw for ; Wed, 16 Nov 2016 05:15:53 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="FbWc2Tl2"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3tJFtw6n4hzDvkR for ; Wed, 16 Nov 2016 05:15:52 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="FbWc2Tl2"; dkim-atps=neutral X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Received: from mail-pf0-x243.google.com (mail-pf0-x243.google.com [IPv6:2607:f8b0:400e:c00::243]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3tJFj85j8qzDvkF for ; Wed, 16 Nov 2016 05:07:24 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="FbWc2Tl2"; dkim-atps=neutral Received: by mail-pf0-x243.google.com with SMTP id y68so8349427pfb.1 for ; Tue, 15 Nov 2016 10:07:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=UP+yLYmPYhq9NRrNM/ANd7gFIPTavcnUAVnxawCC4rM=; b=FbWc2Tl2m1NGHR1zH6c+I3fm24HxpCxlrFdsh8uk6sxP0fiB95HPNW7eXtJJhUUabV HBZNxmfcH6fA8vlCSyUuhNfDZby2JTuIEiGCVJBiW6Yh53QG3xTy+cPbP+ya9OvirrW7 83OZ0VRIKVdEP/ngmmFfOmjHGzeJrdmCZVc9wCkgsPerYNH64m6s0j6sN6cLZ+/LeIJt mMbSCHgM8llxdC+KHxS9N3KMEw7tWk+c3XSC2rKcaCbfQFAJaer3fgjwS3fOJ303yoPm 0tkqX+f+qxFsHnF08wPPhbgm6nDDu5IfAHcByLYkw0aw+q7lPJabtCMttYmm6BvcrpID saHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=UP+yLYmPYhq9NRrNM/ANd7gFIPTavcnUAVnxawCC4rM=; b=MrX/DrviDfJ2cVmU61/xLw9op535lkl7TikdJfqT7pTk1pLrx2YurytLYHeayKiEsT Wvwqd5kfaEQnLJ/rVD3/0DzDGryoiVqPuQiLb+SkzzRscylV7uz85uzlorcCguW9B4sc U++3dEDjuYB4x6TcvdzcfUB86XzgmMCP6PvAo2fd2YqYKS+wfvDQiMMNHAum5brvzZOd L9Zgns5aOhxPUJzuebSnxVvfCQVugfBBuS8FMRaF69bufB/l8v/u9ZUtl6DMVkO6tu0J 2xxFH1xzlktLZ4LNXUOEWMPhD4ZY1OEBLPW7ckH5rxI0B+YMv2xcnfnCTRCj+Wg5sLmN JrLA== X-Gm-Message-State: ABUngvd+gUOhrigQgNtTNrIWK8moLIIC5OuuG33MdDVBbxUfCo3CgB3zPQpUEf3dDBS31w== X-Received: by 10.99.157.129 with SMTP id i123mr39707902pgd.148.1479233242814; Tue, 15 Nov 2016 10:07:22 -0800 (PST) Received: from fainelli-desktop.broadcom.com ([192.19.255.250]) by smtp.gmail.com with ESMTPSA id g63sm20735316pfd.60.2016.11.15.10.07.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Nov 2016 10:07:21 -0800 (PST) From: Florian Fainelli To: netdev@vger.kernel.org Subject: [PATCH 12/15] net: ethernet: ucc: Utilize phy_ethtool_nway_reset Date: Tue, 15 Nov 2016 10:06:41 -0800 Message-Id: <20161115180644.3941-13-f.fainelli@gmail.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20161115180644.3941-1-f.fainelli@gmail.com> References: <20161115180644.3941-1-f.fainelli@gmail.com> X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: andrew@lunn.ch, Florian Fainelli , open list , "open list:FREESCALE QUICC ENGINE UCC ETHERNET DRIVER" , davem@davemloft.net, tremyfr@gmail.com Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" Signed-off-by: Florian Fainelli --- drivers/net/ethernet/freescale/ucc_geth_ethtool.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/drivers/net/ethernet/freescale/ucc_geth_ethtool.c b/drivers/net/ethernet/freescale/ucc_geth_ethtool.c index 812a968a78e9..8ba636f61b50 100644 --- a/drivers/net/ethernet/freescale/ucc_geth_ethtool.c +++ b/drivers/net/ethernet/freescale/ucc_geth_ethtool.c @@ -332,13 +332,6 @@ static void uec_get_ethtool_stats(struct net_device *netdev, } } -static int uec_nway_reset(struct net_device *netdev) -{ - struct ucc_geth_private *ugeth = netdev_priv(netdev); - - return phy_start_aneg(ugeth->phydev); -} - /* Report driver information */ static void uec_get_drvinfo(struct net_device *netdev, @@ -394,7 +387,7 @@ static const struct ethtool_ops uec_ethtool_ops = { .get_regs = uec_get_regs, .get_msglevel = uec_get_msglevel, .set_msglevel = uec_set_msglevel, - .nway_reset = uec_nway_reset, + .nway_reset = phy_ethtool_nway_reset, .get_link = ethtool_op_get_link, .get_ringparam = uec_get_ringparam, .set_ringparam = uec_set_ringparam,