Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755315AbbDNNR4 (ORCPT ); Tue, 14 Apr 2015 09:17:56 -0400 Received: from mout.kundenserver.de ([212.227.126.187]:54525 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753471AbbDNNRr (ORCPT ); Tue, 14 Apr 2015 09:17:47 -0400 From: Arnd Bergmann To: linux-arm-kernel@lists.infradead.org Cc: Greg Kroah-Hartman , Srinivas Kandagatla , Laurent Pinchart , bcm-kernel-feedback-list@broadcom.com, Thomas Pugliese , Kishon Vijay Abraham I , Peter Griffin , Jonathan Richardson , Anatol Pomazau , Ray Jui , Alan Stern , Arun Ramamurthy , Dmitry Torokhov , David Mosberger , Gregory CLEMENT , Kevin Hao , Paul Bolle , Mathias Nyman , Scott Branden , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Felipe Balbi , Tony Prisk Subject: Re: [PATCHv2 2/3] usb: ehci-platform: Use devm_of_phy_get_by_index Date: Tue, 14 Apr 2015 15:17:30 +0200 Message-ID: <2433709.D3gBAte9Iu@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <20150414123737.GB18756@kroah.com> References: <1428963047-23666-1-git-send-email-arun.ramamurthy@broadcom.com> <6483716.157BQAaRqF@wuerfel> <20150414123737.GB18756@kroah.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:1a9nmZxs9LaDDbdgk+F7ikFWBziWmFEFKh5V5QmhG9vVoeeJBJ1 aXm9uRaXFaMu/5y2oSDbe/mTVqh/2f7txNViUn93x/UKEj54FyiVJWfbbQS/vRqPNWmsZj1 SBihfarlrWfIJnXog7tYUE6EOrxg67rQ81REIZWxvZ5M+we2C1Vs5W70IaKU/xmfMdmNfLL 8G+j4+TthgrteFqOrzCpw== 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: 1296 Lines: 30 On Tuesday 14 April 2015 14:37:37 Greg Kroah-Hartman wrote: > On Tue, Apr 14, 2015 at 01:33:08PM +0200, Arnd Bergmann wrote: > > 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. > > Yes, please do that. > > > b) change the drivers using it to 'depends on', and make GENERIC_PHY > > itself a hidden option without a Kconfig prompt. > > Then how could GENERIC_PHY ever get set? Right now, every driver that provides a phy uses 'select GENERIC_PHY', and they would have to keep doing that. This is not unlike what we do for other silent symbols like MFD_CORE, REGMAP_I2C, or PINCTRL, and it's not as problematic as 'select' on a user-visible option, or (worst) mixing 'select' and 'depends on'. 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/