usb: fsl: drop USB_FSL_MPH_DR_OF Kconfig symbol
authorArnd Bergmann <arnd@arndb.de>
Thu, 28 Jan 2016 16:20:54 +0000 (17:20 +0100)
committerFelipe Balbi <balbi@kernel.org>
Fri, 4 Mar 2016 13:14:29 +0000 (15:14 +0200)
The USB_FSL_MPH_DR_OF symbol is used to ensure the code that interprets
the DR device node is built whenever one of the two drivers (EHCI or
UDC) for the platform is enabled. However, if CONFIG_USB is disabled
and we only support gadget mode, this causes a Kconfig warning:

warning: (USB_FSL_USB2) selects USB_FSL_MPH_DR_OF which has unmet direct dependencies (USB_SUPPORT && USB)

We can avoid this warning by simply no longer using the symbol,
and making sure we enter the drivers/usb/host/ directory when
the UDC driver is enabled that needs the file, and then we use
Makefile syntax to ensure the file is built-in if needed.

There is currently a dependency on CONFIG_OF, but this is redundant,
as we already know that this is set unconditionally for the platforms
that use this driver.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/Makefile
drivers/usb/gadget/udc/Kconfig
drivers/usb/host/Kconfig
drivers/usb/host/Makefile

index d5c57f1e98fddfffb39c948159558ca4ea09b0f3..dca78565eb5500263051e9e1c889d84d6afd8fd9 100644 (file)
@@ -26,7 +26,7 @@ obj-$(CONFIG_USB_U132_HCD)    += host/
 obj-$(CONFIG_USB_R8A66597_HCD) += host/
 obj-$(CONFIG_USB_HWA_HCD)      += host/
 obj-$(CONFIG_USB_IMX21_HCD)    += host/
-obj-$(CONFIG_USB_FSL_MPH_DR_OF)        += host/
+obj-$(CONFIG_USB_FSL_USB2)     += host/
 obj-$(CONFIG_USB_FOTG210_HCD)  += host/
 obj-$(CONFIG_USB_MAX3421_HCD)  += host/
 
index d6ad7e6c978ca9b418dc347fb302c5fe66cf66da..ff4f8a6735d6e9fd53e8fa8e359098dff825e92a 100644 (file)
@@ -74,7 +74,6 @@ config USB_BCM63XX_UDC
 config USB_FSL_USB2
        tristate "Freescale Highspeed USB DR Peripheral Controller"
        depends on FSL_SOC || ARCH_MXC
-       select USB_FSL_MPH_DR_OF if OF
        help
           Some of Freescale PowerPC and i.MX processors have a High Speed
           Dual-Role(DR) USB controller, which supports device mode.
index ed9a90f601e88b91cb153326d6ace1ba0e74fae7..8c20ebbc049c8b30fd38f0dc21e08a7432995bc4 100644 (file)
@@ -125,9 +125,6 @@ config USB_EHCI_TT_NEWSCHED
 
          If unsure, say Y.
 
-config USB_FSL_MPH_DR_OF
-       tristate
-
 if USB_EHCI_HCD
 
 config USB_EHCI_PCI
@@ -160,7 +157,6 @@ config USB_EHCI_FSL
        tristate "Support for Freescale PPC on-chip EHCI USB controller"
        depends on FSL_SOC
        select USB_EHCI_ROOT_HUB_TT
-       select USB_FSL_MPH_DR_OF if OF
        ---help---
          Variation of ARC USB block used in some Freescale chips.
 
index 65a06b4382bfabfc253a7f9bc1c381faa6cebff3..a9ddd3c9ec9499b556789844eaaad5574a01d887 100644 (file)
@@ -74,7 +74,8 @@ obj-$(CONFIG_USB_U132_HCD)    += u132-hcd.o
 obj-$(CONFIG_USB_R8A66597_HCD) += r8a66597-hcd.o
 obj-$(CONFIG_USB_HWA_HCD)      += hwa-hc.o
 obj-$(CONFIG_USB_IMX21_HCD)    += imx21-hcd.o
-obj-$(CONFIG_USB_FSL_MPH_DR_OF)        += fsl-mph-dr-of.o
+obj-$(CONFIG_USB_FSL_USB2)     += fsl-mph-dr-of.o
+obj-$(CONFIG_USB_EHCI_FSL)     += fsl-mph-dr-of.o
 obj-$(CONFIG_USB_EHCI_FSL)     += ehci-fsl.o
 obj-$(CONFIG_USB_HCD_BCMA)     += bcma-hcd.o
 obj-$(CONFIG_USB_HCD_SSB)      += ssb-hcd.o
This page took 0.028797 seconds and 5 git commands to generate.