summaryrefslogtreecommitdiff
path: root/target/linux/gemini/patches-3.3/132-arm-gemini-wbd111-register-usb.patch
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-05-13 12:03:59 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-05-13 12:03:59 +0000
commitd0ac4c1f0396906c755fb5cc81a729a611a2ca4d (patch)
treec998c548dde6b0c97290f82c3fe2744917f24fee /target/linux/gemini/patches-3.3/132-arm-gemini-wbd111-register-usb.patch
parent9cc9e8b608c51e5901cc1e314f1f4962b6618ee2 (diff)
downloadmtk-20170518-d0ac4c1f0396906c755fb5cc81a729a611a2ca4d.zip
mtk-20170518-d0ac4c1f0396906c755fb5cc81a729a611a2ca4d.tar.gz
mtk-20170518-d0ac4c1f0396906c755fb5cc81a729a611a2ca4d.tar.bz2
gemini: add support for 3.3
SVN-Revision: 31698
Diffstat (limited to 'target/linux/gemini/patches-3.3/132-arm-gemini-wbd111-register-usb.patch')
-rw-r--r--target/linux/gemini/patches-3.3/132-arm-gemini-wbd111-register-usb.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/target/linux/gemini/patches-3.3/132-arm-gemini-wbd111-register-usb.patch b/target/linux/gemini/patches-3.3/132-arm-gemini-wbd111-register-usb.patch
new file mode 100644
index 0000000..2633936
--- /dev/null
+++ b/target/linux/gemini/patches-3.3/132-arm-gemini-wbd111-register-usb.patch
@@ -0,0 +1,24 @@
+--- a/arch/arm/mach-gemini/board-wbd111.c
++++ b/arch/arm/mach-gemini/board-wbd111.c
+@@ -149,6 +149,7 @@ static void __init wbd111_init(void)
+ platform_register_watchdog();
+ platform_device_register(&wbd111_phy_device);
+ platform_register_ethernet(&gmac_data);
++ platform_register_usb(0);
+ }
+
+ MACHINE_START(WBD111, "Wiliboard WBD-111")
+--- a/drivers/usb/host/ehci-hcd.c
++++ b/drivers/usb/host/ehci-hcd.c
+@@ -112,7 +112,11 @@ module_param (park, uint, S_IRUGO);
+ MODULE_PARM_DESC (park, "park setting; 1-3 back-to-back async packets");
+
+ /* for flakey hardware, ignore overcurrent indicators */
++#ifdef CONFIG_ARCH_GEMINI
++static bool ignore_oc = 1;
++#else
+ static bool ignore_oc = 0;
++#endif
+ module_param (ignore_oc, bool, S_IRUGO);
+ MODULE_PARM_DESC (ignore_oc, "ignore bogus hardware overcurrent indications");
+