diff options
author | Luka Perkov <luka@openwrt.org> | 2013-08-04 14:20:15 +0000 |
---|---|---|
committer | Luka Perkov <luka@openwrt.org> | 2013-08-04 14:20:15 +0000 |
commit | f5b9555cdc26534b6a107ef6c27440b21e1f1e0e (patch) | |
tree | 2067c2a87be96f9c08153cfe537e21f07eb6d07b /target/linux/imx6 | |
parent | db083a41cf533818ac9a3d0f0715981f9d47508f (diff) | |
download | mtk-20170518-f5b9555cdc26534b6a107ef6c27440b21e1f1e0e.zip mtk-20170518-f5b9555cdc26534b6a107ef6c27440b21e1f1e0e.tar.gz mtk-20170518-f5b9555cdc26534b6a107ef6c27440b21e1f1e0e.tar.bz2 |
imx6: sync usb chipidea with upstream
Signed-off-by: Luka Perkov <luka@openwrt.org>
SVN-Revision: 37686
Diffstat (limited to 'target/linux/imx6')
-rw-r--r-- | target/linux/imx6/patches-3.10/0001-usb-chipidea-improve-kconfig.patch | 5 | ||||
-rw-r--r-- | target/linux/imx6/patches-3.10/0002-usb-chipidea-fix-the-build-error-with-randconfig.patch | 44 | ||||
-rw-r--r-- | target/linux/imx6/patches-3.10/0003-usb-chipidea-enable-to-build-host-support-as-module.patch (renamed from target/linux/imx6/patches-3.10/0002-usb-chipidea-enable-to-build-host-support-as-module.patch) | 11 |
3 files changed, 47 insertions, 13 deletions
diff --git a/target/linux/imx6/patches-3.10/0001-usb-chipidea-improve-kconfig.patch b/target/linux/imx6/patches-3.10/0001-usb-chipidea-improve-kconfig.patch index 2956bd9..da46405 100644 --- a/target/linux/imx6/patches-3.10/0001-usb-chipidea-improve-kconfig.patch +++ b/target/linux/imx6/patches-3.10/0001-usb-chipidea-improve-kconfig.patch @@ -59,8 +59,6 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> drivers/usb/chipidea/Kconfig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -diff --git a/drivers/usb/chipidea/Kconfig b/drivers/usb/chipidea/Kconfig -index b2df442..eb2aa2e 100644 --- a/drivers/usb/chipidea/Kconfig +++ b/drivers/usb/chipidea/Kconfig @@ -12,15 +12,15 @@ if USB_CHIPIDEA @@ -82,6 +80,3 @@ index b2df442..eb2aa2e 100644 select USB_EHCI_ROOT_HUB_TT help Say Y here to enable host controller functionality of the --- -1.8.3.3 - diff --git a/target/linux/imx6/patches-3.10/0002-usb-chipidea-fix-the-build-error-with-randconfig.patch b/target/linux/imx6/patches-3.10/0002-usb-chipidea-fix-the-build-error-with-randconfig.patch new file mode 100644 index 0000000..b921dfd --- /dev/null +++ b/target/linux/imx6/patches-3.10/0002-usb-chipidea-fix-the-build-error-with-randconfig.patch @@ -0,0 +1,44 @@ +From 972a6c5d56b42d6dd326867d5974ffa58383ec53 Mon Sep 17 00:00:00 2001 +From: Peter Chen <peter.chen@freescale.com> +Date: Mon, 29 Jul 2013 13:09:57 +0300 +Subject: [PATCH] usb: chipidea: fix the build error with randconfig + +Using below configs, the compile will have error: +ERROR: "ehci_init_driver" undefined! + +.config: +CONFIG_USB_CHIPIDEA=m +CONFIG_USB_CHIPIDEA_HOST=y +CONFIG_USB_CHIPIDEA_DEBUG=y + +The reason is chipidea host uses symbol from ehci, but ehci +is not compiled. Let the chipidea host depend on +ehci even it is built as module. + +Signed-off-by: Peter Chen <peter.chen@freescale.com> +Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com> +Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> +--- + drivers/usb/chipidea/Kconfig | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +--- a/drivers/usb/chipidea/Kconfig ++++ b/drivers/usb/chipidea/Kconfig +@@ -12,7 +12,7 @@ if USB_CHIPIDEA + + config USB_CHIPIDEA_UDC + bool "ChipIdea device controller" +- depends on USB_GADGET=y || USB_CHIPIDEA=m ++ depends on USB_GADGET=y || (USB_CHIPIDEA=m && USB_GADGET=m) + help + Say Y here to enable device controller functionality of the + ChipIdea driver. +@@ -20,7 +20,7 @@ config USB_CHIPIDEA_UDC + config USB_CHIPIDEA_HOST + bool "ChipIdea host controller" + depends on USB=y +- depends on USB_EHCI_HCD=y || USB_CHIPIDEA=m ++ depends on USB_EHCI_HCD=y || (USB_CHIPIDEA=m && USB_EHCI_HCD=m) + select USB_EHCI_ROOT_HUB_TT + help + Say Y here to enable host controller functionality of the diff --git a/target/linux/imx6/patches-3.10/0002-usb-chipidea-enable-to-build-host-support-as-module.patch b/target/linux/imx6/patches-3.10/0003-usb-chipidea-enable-to-build-host-support-as-module.patch index e2db7ca..9d92253 100644 --- a/target/linux/imx6/patches-3.10/0002-usb-chipidea-enable-to-build-host-support-as-module.patch +++ b/target/linux/imx6/patches-3.10/0003-usb-chipidea-enable-to-build-host-support-as-module.patch @@ -1,6 +1,6 @@ -From f4087fcf07cce987f5ce3c42d6aee87b7b4f82b8 Mon Sep 17 00:00:00 2001 +From f51ac206b1ca27d240fe7fde6975496d558f51df Mon Sep 17 00:00:00 2001 From: Luka Perkov <luka@openwrt.org> -Date: Sun, 28 Jul 2013 20:33:01 +0200 +Date: Sun, 4 Aug 2013 03:10:59 +0200 Subject: [PATCH] usb: chipidea: enable to build host support as module USB_CHIPIDEA_HOST does not need to depend on USB=y, USB_CHIPIDEA_HOST will work @@ -14,8 +14,6 @@ Signed-off-by: Luka Perkov <luka@openwrt.org> drivers/usb/chipidea/Kconfig | 1 - 1 file changed, 1 deletion(-) -diff --git a/drivers/usb/chipidea/Kconfig b/drivers/usb/chipidea/Kconfig -index eb2aa2e..c9477e3 100644 --- a/drivers/usb/chipidea/Kconfig +++ b/drivers/usb/chipidea/Kconfig @@ -19,7 +19,6 @@ config USB_CHIPIDEA_UDC @@ -23,9 +21,6 @@ index eb2aa2e..c9477e3 100644 config USB_CHIPIDEA_HOST bool "ChipIdea host controller" - depends on USB=y - depends on USB_EHCI_HCD=y || USB_CHIPIDEA=m + depends on USB_EHCI_HCD=y || (USB_CHIPIDEA=m && USB_EHCI_HCD=m) select USB_EHCI_ROOT_HUB_TT help --- -1.8.3.3 - |