From mboxrd@z Thu Jan 1 00:00:00 1970 From: kishon@ti.com (Kishon Vijay Abraham I) Date: Tue, 14 Apr 2015 19:53:05 +0530 Subject: [PATCHv2 2/3] usb: ehci-platform: Use devm_of_phy_get_by_index In-Reply-To: <2433709.D3gBAte9Iu@wuerfel> References: <1428963047-23666-1-git-send-email-arun.ramamurthy@broadcom.com> <6483716.157BQAaRqF@wuerfel> <20150414123737.GB18756@kroah.com> <2433709.D3gBAte9Iu@wuerfel> Message-ID: <552D22C9.6090503@ti.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Hi Arnd, On Tuesday 14 April 2015 06:47 PM, Arnd Bergmann wrote: > 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'. Sorry, didn't get how GENERIC_PHY could be set with option 'b'. Thanks Kishon