Message ID | 20151118031748.GA4228@shlinux2 (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Wednesday 18 November 2015 11:17:50 Peter Chen wrote: > From 3a6918dae038aadc200dcf0263f4440acc2353d4 Mon Sep 17 00:00:00 2001 > From: Peter Chen <peter.chen@freescale.com> > Date: Wed, 18 Nov 2015 11:06:34 +0800 > Subject: [PATCH 1/1] usb: kconfig: fix warning of select USB_OTG > > When choose randconfig for kernel build, it reports below warning: > "warning: (USB_OTG_FSM && FSL_USB2_OTG && USB_MV_OTG) selects USB_OTG > which has unmet direct dependencies (USB_SUPPORT && USB && PM)" > > In fact, USB_OTG is visual symbol and depends on PM, so the driver visible ? > needs to depend on it to reduce dependency problem. > > Signed-off-by: Peter Chen <peter.chen@freescale.com> > Reported-by: Arnd Bergmann <arnd@arndb.de> > Cc: Felipe Balbi <balbi@ti.com> Acked-by: Arnd Bergmann <arnd@arndb.de> I was a bit worried that this might break defconfig files that now no longer automatically get OSB_OTG enabled, but I have checked all defconfig files we have in the kernel and none of them uses USB_OTG_FSM, FSL_USB2_OTG or USB_MV_OTG, so we are fine. Thanks! Arnd
On Wed, Nov 18, 2015 at 10:38:18AM +0100, Arnd Bergmann wrote: > On Wednesday 18 November 2015 11:17:50 Peter Chen wrote: > > From 3a6918dae038aadc200dcf0263f4440acc2353d4 Mon Sep 17 00:00:00 2001 > > From: Peter Chen <peter.chen@freescale.com> > > Date: Wed, 18 Nov 2015 11:06:34 +0800 > > Subject: [PATCH 1/1] usb: kconfig: fix warning of select USB_OTG > > > > When choose randconfig for kernel build, it reports below warning: > > "warning: (USB_OTG_FSM && FSL_USB2_OTG && USB_MV_OTG) selects USB_OTG > > which has unmet direct dependencies (USB_SUPPORT && USB && PM)" > > > > In fact, USB_OTG is visual symbol and depends on PM, so the driver > > visible ? Yes, will change this typo > > > needs to depend on it to reduce dependency problem. > > > > Signed-off-by: Peter Chen <peter.chen@freescale.com> > > Reported-by: Arnd Bergmann <arnd@arndb.de> > > Cc: Felipe Balbi <balbi@ti.com> > > Acked-by: Arnd Bergmann <arnd@arndb.de> > > I was a bit worried that this might break defconfig files that now > no longer automatically get OSB_OTG enabled, but I have checked all > defconfig files we have in the kernel and none of them uses > USB_OTG_FSM, FSL_USB2_OTG or USB_MV_OTG, so we are fine. Thanks. > > Thanks! > > Arnd
diff --git a/drivers/usb/core/Kconfig b/drivers/usb/core/Kconfig index a99c89e..dd28010 100644 --- a/drivers/usb/core/Kconfig +++ b/drivers/usb/core/Kconfig @@ -77,8 +77,7 @@ config USB_OTG_BLACKLIST_HUB config USB_OTG_FSM tristate "USB 2.0 OTG FSM implementation" - depends on USB - select USB_OTG + depends on USB && USB_OTG select USB_PHY help Implements OTG Finite State Machine as specified in On-The-Go diff --git a/drivers/usb/phy/Kconfig b/drivers/usb/phy/Kconfig index 1731324..22e8ecb 100644 --- a/drivers/usb/phy/Kconfig +++ b/drivers/usb/phy/Kconfig @@ -21,7 +21,6 @@ config AB8500_USB config FSL_USB2_OTG bool "Freescale USB OTG Transceiver Driver" depends on USB_EHCI_FSL && USB_FSL_USB2 && USB_OTG_FSM && PM - select USB_OTG select USB_PHY help Enable this to support Freescale USB OTG transceiver. @@ -168,8 +167,7 @@ config USB_QCOM_8X16_PHY config USB_MV_OTG tristate "Marvell USB OTG support" - depends on USB_EHCI_MV && USB_MV_UDC && PM - select USB_OTG + depends on USB_EHCI_MV && USB_MV_UDC && PM && USB_OTG select USB_PHY help Say Y here if you want to build Marvell USB OTG transciever