Message ID | 20190103011040.25974-1-marex@denx.de (mailing list archive) |
---|---|
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 9142917D2 for <patchwork-linux-usb@patchwork.kernel.org>; Thu, 3 Jan 2019 01:13:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8222D28409 for <patchwork-linux-usb@patchwork.kernel.org>; Thu, 3 Jan 2019 01:13:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7636628417; Thu, 3 Jan 2019 01:13:04 +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 1B74728409 for <patchwork-linux-usb@patchwork.kernel.org>; Thu, 3 Jan 2019 01:13:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726808AbfACBLI (ORCPT <rfc822;patchwork-linux-usb@patchwork.kernel.org>); Wed, 2 Jan 2019 20:11:08 -0500 Received: from mail-out.m-online.net ([212.18.0.10]:53810 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726071AbfACBLH (ORCPT <rfc822;linux-usb@vger.kernel.org>); Wed, 2 Jan 2019 20:11:07 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 43VVGw08Myz1qvTP; Thu, 3 Jan 2019 02:11:03 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 43VVGv238Kz1qvWb; Thu, 3 Jan 2019 02:11:03 +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 k315pRo2mX1h; Thu, 3 Jan 2019 02:11:00 +0100 (CET) X-Auth-Info: keoKlkGP61Kq7kx53MEVcUoqwbv20HVfhC0jdBXIZZ4= 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:00 +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 00/19] usbnet: smsc95xx: Convert to phydev Date: Thu, 3 Jan 2019 02:10:21 +0100 Message-Id: <20190103011040.25974-1-marex@denx.de> X-Mailer: git-send-email 2.19.2 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
|
This series first cleans up the in_pm variable and _nopm() functions, in preparations for conversion to phy_device instead of ad-hoc PHY configuration. This is followed by a registration of an MDIO bus, attaching a PHY device to it and conversion and cleanup of assorted functions to use the new PHY device functions. This patchset also allows using other PHYs but the internal one, since the PHY code scans for the first available PHY, however the code was only tested with the internal PHY on a RasPi B+ thus far, as that is the most common use for this device it seems. 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 Marek Vasut (19): usbnet: smsc95xx: Fix memory leak in smsc95xx_bind usbnet: smsc95xx: Stop propagation of in_pm usbnet: smsc95xx: Remove smsc95xx_{read,write}_reg_nopm() usbnet: smsc95xx: Remove __smsc95xx_{read,write}_reg() usbnet: smsc95xx: Remove smsc95xx_{read,write}_nopm() usbnet: smsc95xx: Remove __smsc95xx_mdio_{read,write}() usbnet: smsc95xx: Split the reset function usbnet: smsc95xx: Register MII bus usbnet: smsc95xx: Connect to phydev usbnet: smsc95xx: Replace smsc95xx_mdio_read() with phy_read() usbnet: smsc95xx: Replace smsc95xx_mdio_write() with phy_write() usbnet: smsc95xx: Replace ad-hoc PHY functions with generic ones usbnet: smsc95xx: Replace smsc95xx_link_ok_nopm() usbnet: smsc95xx: Replace mii_nway_restart() usbnet: smsc95xx: Replace mii_ethtool_gset() usbnet: smsc95xx: Replace mii_check_media() usbnet: smsc95xx: Replace generic_mii_ioctl() usbnet: smsc95xx: Remove all of the carrier checking code usbnet: smsc95xx: Use phy bit operations drivers/net/usb/smsc95xx.c | 478 ++++++++++++++++++------------------- 1 file changed, 229 insertions(+), 249 deletions(-)