summaryrefslogtreecommitdiff
path: root/target/linux/gemini/patches/132-arm-gemini-wbd111-register-usb.patch
blob: 44e72d17c36ed328c6ef27b81313f3c5024c3624 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- a/arch/arm/mach-gemini/board-wbd111.c
+++ b/arch/arm/mach-gemini/board-wbd111.c
@@ -145,6 +145,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
@@ -99,7 +99,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");