Message ID | 20190103011040.25974-15-marex@denx.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-usb-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1E3BE1399 for <patchwork-linux-usb@patchwork.kernel.org>; Thu, 3 Jan 2019 01:12:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 101F728409 for <patchwork-linux-usb@patchwork.kernel.org>; Thu, 3 Jan 2019 01:12:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0408428417; Thu, 3 Jan 2019 01:12:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A517D28409 for <patchwork-linux-usb@patchwork.kernel.org>; Thu, 3 Jan 2019 01:12:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730267AbfACBMb (ORCPT <rfc822;patchwork-linux-usb@patchwork.kernel.org>); Wed, 2 Jan 2019 20:12:31 -0500 Received: from mail-out.m-online.net ([212.18.0.9]:60984 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728902AbfACBLW (ORCPT <rfc822;linux-usb@vger.kernel.org>); Wed, 2 Jan 2019 20:11:22 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 43VVHF1Wh8z1qvgR; Thu, 3 Jan 2019 02:11:21 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 43VVHF16xjz1qvWh; Thu, 3 Jan 2019 02:11:21 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id v3UjrHfevI2J; Thu, 3 Jan 2019 02:11:20 +0100 (CET) X-Auth-Info: xoAXUAo4THPgrcoEIvyrDeE0oDrLCatWqQGEKYPl+Og= Received: from kurokawa.lan (ip-86-49-110-70.net.upcbroadband.cz [86.49.110.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Thu, 3 Jan 2019 02:11:20 +0100 (CET) From: Marek Vasut <marex@denx.de> To: netdev@vger.kernel.org Cc: Marek Vasut <marex@denx.de>, "David S . Miller" <davem@davemloft.net>, Nisar Sayed <Nisar.Sayed@microchip.com>, Woojung Huh <Woojung.Huh@microchip.com>, Andrew Lunn <andrew@lunn.ch>, Florian Fainelli <f.fainelli@gmail.com>, linux-usb@vger.kernel.org Subject: [PATCH 14/19] usbnet: smsc95xx: Replace mii_nway_restart() Date: Thu, 3 Jan 2019 02:10:35 +0100 Message-Id: <20190103011040.25974-15-marex@denx.de> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20190103011040.25974-1-marex@denx.de> References: <20190103011040.25974-1-marex@denx.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: <linux-usb.vger.kernel.org> X-Mailing-List: linux-usb@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
usbnet: smsc95xx: Convert to phydev
|
expand
|
diff --git a/drivers/net/usb/smsc95xx.c b/drivers/net/usb/smsc95xx.c index 401662f28f01..87830c67aee1 100644 --- a/drivers/net/usb/smsc95xx.c +++ b/drivers/net/usb/smsc95xx.c @@ -990,7 +990,10 @@ static int smsc95xx_phy_initialize(struct usbnet *dev) phy_write(pdata->phydev, PHY_INT_MASK, PHY_INT_MASK_DEFAULT_); - mii_nway_restart(&dev->mii); + + ret = genphy_restart_aneg(pdata->phydev); + if (ret) + return ret; netif_dbg(dev, ifup, dev->net, "phy initialised successfully\n"); return 0;
This is in fact genphy_restart_aneg(), just use the generic phydev function. Signed-off-by: Marek Vasut <marex@denx.de> Cc: David S. Miller <davem@davemloft.net> Cc: Nisar Sayed <Nisar.Sayed@microchip.com> Cc: Woojung Huh <Woojung.Huh@microchip.com> Cc: Andrew Lunn <andrew@lunn.ch> Cc: Florian Fainelli <f.fainelli@gmail.com> Cc: linux-usb@vger.kernel.org To: netdev@vger.kernel.org --- drivers/net/usb/smsc95xx.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)