Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755089AbbDNLeN (ORCPT ); Tue, 14 Apr 2015 07:34:13 -0400 Received: from mout.kundenserver.de ([212.227.17.10]:56252 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753337AbbDNLeJ (ORCPT ); Tue, 14 Apr 2015 07:34:09 -0400 From: Arnd Bergmann To: Greg Kroah-Hartman Cc: Arun Ramamurthy , Kishon Vijay Abraham I , Tony Prisk , Alan Stern , Felipe Balbi , Mathias Nyman , Paul Bolle , Thomas Pugliese , Srinivas Kandagatla , David Mosberger , Peter Griffin , Gregory CLEMENT , Laurent Pinchart , Kevin Hao , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-usb@vger.kernel.org, Dmitry Torokhov , Anatol Pomazau , Jonathan Richardson , Scott Branden , Ray Jui , bcm-kernel-feedback-list@broadcom.com Subject: Re: [PATCHv2 2/3] usb: ehci-platform: Use devm_of_phy_get_by_index Date: Tue, 14 Apr 2015 13:33:08 +0200 Message-ID: <6483716.157BQAaRqF@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <20150414111934.GA27836@kroah.com> References: <1428963047-23666-1-git-send-email-arun.ramamurthy@broadcom.com> <1428963047-23666-3-git-send-email-arun.ramamurthy@broadcom.com> <20150414111934.GA27836@kroah.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:k/iEfA9HIj0s6jS3cgm4YIeNQ5s4F5Ki2CgmppR+nobMmrsKTAR dxZy0WCNNfgXLpCNMZlKHCgXmONvdhUKDth2ExfJXkPwtFjFpdgAzFc8vyadOJ95djYdl0R 3iKDWj3YcMI7PwPPO+N+XCx0Bfs2DWGWcpIrqsSoNyMMAfxurh8l0iA2d8l0EOofffAwXIR kqI7R6OcGBwRK1kxdpFug== X-UI-Out-Filterresults: notjunk:1; Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1865 Lines: 47 On Tuesday 14 April 2015 13:19:34 Greg Kroah-Hartman wrote: > On Mon, Apr 13, 2015 at 03:10:46PM -0700, Arun Ramamurthy wrote: > > Getting phys by index instead of phy names so that we do > > not have to create a naming scheme when multiple phys > > are present > > > > Signed-off-by: Arun Ramamurthy > > Reviewed-by: Ray Jui > > Reviewed-by: Scott Branden > > --- > > drivers/usb/host/Kconfig | 1 + > > drivers/usb/host/ehci-platform.c | 70 ++++++++++++++-------------------------- > > 2 files changed, 26 insertions(+), 45 deletions(-) > > > > diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig > > index 5ad60e4..563f22d 100644 > > --- a/drivers/usb/host/Kconfig > > +++ b/drivers/usb/host/Kconfig > > @@ -284,6 +284,7 @@ config USB_EHCI_ATH79 > > > > config USB_EHCI_HCD_PLATFORM > > tristate "Generic EHCI driver for a platform device" > > + select GENERIC_PHY > > Configs should never select if at all possible. > This is true, but all other drivers do the same for GENERIC_PHY at the moment. If this one gets changed, we should probably apply the same solution to all current users and fix them consistently. We can do one of these two: a) make sure that the framework has 'static inline' stubs that let you build all drivers using it when the framework itself is disabled. b) change the drivers using it to 'depends on', and make GENERIC_PHY itself a hidden option without a Kconfig prompt. Either solution is probably simple enough that it can be done as part of this series. Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/