aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-01-28 11:20:54 -0500
committerFelipe Balbi <balbi@kernel.org>2016-03-04 08:14:29 -0500
commitd0fc35bc0889c7157527ed5758f54101ec015839 (patch)
tree5e769fe3b6ad528d8ea9390d40d69b87af73402b /drivers
parent65bc0fba4ed6e2ea7d89539985feb576ae2f84b9 (diff)
usb: fsl: drop USB_FSL_MPH_DR_OF Kconfig symbol
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/Makefile2
-rw-r--r--drivers/usb/gadget/udc/Kconfig1
-rw-r--r--drivers/usb/host/Kconfig4
-rw-r--r--drivers/usb/host/Makefile3
4 files changed, 3 insertions, 7 deletions
diff --git a/drivers/usb/Makefile b/drivers/usb/Makefile
index d5c57f1e98fd..dca78565eb55 100644
--- a/drivers/usb/Makefile
+++ b/drivers/usb/Makefile
@@ -26,7 +26,7 @@ obj-$(CONFIG_USB_U132_HCD) += host/
26obj-$(CONFIG_USB_R8A66597_HCD) += host/ 26obj-$(CONFIG_USB_R8A66597_HCD) += host/
27obj-$(CONFIG_USB_HWA_HCD) += host/ 27obj-$(CONFIG_USB_HWA_HCD) += host/
28obj-$(CONFIG_USB_IMX21_HCD) += host/ 28obj-$(CONFIG_USB_IMX21_HCD) += host/
29obj-$(CONFIG_USB_FSL_MPH_DR_OF) += host/ 29obj-$(CONFIG_USB_FSL_USB2) += host/
30obj-$(CONFIG_USB_FOTG210_HCD) += host/ 30obj-$(CONFIG_USB_FOTG210_HCD) += host/
31obj-$(CONFIG_USB_MAX3421_HCD) += host/ 31obj-$(CONFIG_USB_MAX3421_HCD) += host/
32 32
diff --git a/drivers/usb/gadget/udc/Kconfig b/drivers/usb/gadget/udc/Kconfig
index d6ad7e6c978c..ff4f8a6735d6 100644
--- a/drivers/usb/gadget/udc/Kconfig
+++ b/drivers/usb/gadget/udc/Kconfig
@@ -74,7 +74,6 @@ config USB_BCM63XX_UDC
74config USB_FSL_USB2 74config USB_FSL_USB2
75 tristate "Freescale Highspeed USB DR Peripheral Controller" 75 tristate "Freescale Highspeed USB DR Peripheral Controller"
76 depends on FSL_SOC || ARCH_MXC 76 depends on FSL_SOC || ARCH_MXC
77 select USB_FSL_MPH_DR_OF if OF
78 help 77 help
79 Some of Freescale PowerPC and i.MX processors have a High Speed 78 Some of Freescale PowerPC and i.MX processors have a High Speed
80 Dual-Role(DR) USB controller, which supports device mode. 79 Dual-Role(DR) USB controller, which supports device mode.
diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig
index ed9a90f601e8..8c20ebbc049c 100644
--- a/drivers/usb/host/Kconfig
+++ b/drivers/usb/host/Kconfig
@@ -125,9 +125,6 @@ config USB_EHCI_TT_NEWSCHED
125 125
126 If unsure, say Y. 126 If unsure, say Y.
127 127
128config USB_FSL_MPH_DR_OF
129 tristate
130
131if USB_EHCI_HCD 128if USB_EHCI_HCD
132 129
133config USB_EHCI_PCI 130config USB_EHCI_PCI
@@ -160,7 +157,6 @@ config USB_EHCI_FSL
160 tristate "Support for Freescale PPC on-chip EHCI USB controller" 157 tristate "Support for Freescale PPC on-chip EHCI USB controller"
161 depends on FSL_SOC 158 depends on FSL_SOC
162 select USB_EHCI_ROOT_HUB_TT 159 select USB_EHCI_ROOT_HUB_TT
163 select USB_FSL_MPH_DR_OF if OF
164 ---help--- 160 ---help---
165 Variation of ARC USB block used in some Freescale chips. 161 Variation of ARC USB block used in some Freescale chips.
166 162
diff --git a/drivers/usb/host/Makefile b/drivers/usb/host/Makefile
index 65a06b4382bf..a9ddd3c9ec94 100644
--- a/drivers/usb/host/Makefile
+++ b/drivers/usb/host/Makefile
@@ -74,7 +74,8 @@ obj-$(CONFIG_USB_U132_HCD) += u132-hcd.o
74obj-$(CONFIG_USB_R8A66597_HCD) += r8a66597-hcd.o 74obj-$(CONFIG_USB_R8A66597_HCD) += r8a66597-hcd.o
75obj-$(CONFIG_USB_HWA_HCD) += hwa-hc.o 75obj-$(CONFIG_USB_HWA_HCD) += hwa-hc.o
76obj-$(CONFIG_USB_IMX21_HCD) += imx21-hcd.o 76obj-$(CONFIG_USB_IMX21_HCD) += imx21-hcd.o
77obj-$(CONFIG_USB_FSL_MPH_DR_OF) += fsl-mph-dr-of.o 77obj-$(CONFIG_USB_FSL_USB2) += fsl-mph-dr-of.o
78obj-$(CONFIG_USB_EHCI_FSL) += fsl-mph-dr-of.o
78obj-$(CONFIG_USB_EHCI_FSL) += ehci-fsl.o 79obj-$(CONFIG_USB_EHCI_FSL) += ehci-fsl.o
79obj-$(CONFIG_USB_HCD_BCMA) += bcma-hcd.o 80obj-$(CONFIG_USB_HCD_BCMA) += bcma-hcd.o
80obj-$(CONFIG_USB_HCD_SSB) += ssb-hcd.o 81obj-$(CONFIG_USB_HCD_SSB) += ssb-hcd.o