imx6: sync usb chipidea with upstream
[openwrt/staging/lynxis/omap.git] / target / linux / imx6 / patches-3.10 / 0002-usb-chipidea-fix-the-build-error-with-randconfig.patch
1 From 972a6c5d56b42d6dd326867d5974ffa58383ec53 Mon Sep 17 00:00:00 2001
2 From: Peter Chen <peter.chen@freescale.com>
3 Date: Mon, 29 Jul 2013 13:09:57 +0300
4 Subject: [PATCH] usb: chipidea: fix the build error with randconfig
5
6 Using below configs, the compile will have error:
7 ERROR: "ehci_init_driver" undefined!
8
9 .config:
10 CONFIG_USB_CHIPIDEA=m
11 CONFIG_USB_CHIPIDEA_HOST=y
12 CONFIG_USB_CHIPIDEA_DEBUG=y
13
14 The reason is chipidea host uses symbol from ehci, but ehci
15 is not compiled. Let the chipidea host depend on
16 ehci even it is built as module.
17
18 Signed-off-by: Peter Chen <peter.chen@freescale.com>
19 Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
20 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
21 ---
22 drivers/usb/chipidea/Kconfig | 4 ++--
23 1 file changed, 2 insertions(+), 2 deletions(-)
24
25 --- a/drivers/usb/chipidea/Kconfig
26 +++ b/drivers/usb/chipidea/Kconfig
27 @@ -12,7 +12,7 @@ if USB_CHIPIDEA
28
29 config USB_CHIPIDEA_UDC
30 bool "ChipIdea device controller"
31 - depends on USB_GADGET=y || USB_CHIPIDEA=m
32 + depends on USB_GADGET=y || (USB_CHIPIDEA=m && USB_GADGET=m)
33 help
34 Say Y here to enable device controller functionality of the
35 ChipIdea driver.
36 @@ -20,7 +20,7 @@ config USB_CHIPIDEA_UDC
37 config USB_CHIPIDEA_HOST
38 bool "ChipIdea host controller"
39 depends on USB=y
40 - depends on USB_EHCI_HCD=y || USB_CHIPIDEA=m
41 + depends on USB_EHCI_HCD=y || (USB_CHIPIDEA=m && USB_EHCI_HCD=m)
42 select USB_EHCI_ROOT_HUB_TT
43 help
44 Say Y here to enable host controller functionality of the