summaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/patches-3.2/700-ar934x_fix_usb_reset.patch
blob: e92353bdf2e7a5ff6f6faa3eb340f267bb3454c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- a/arch/mips/ath79/dev-usb.c
+++ b/arch/mips/ath79/dev-usb.c
@@ -190,16 +190,16 @@ static void __init ar934x_usb_setup(void
 	if (bootstrap & AR934X_BOOTSTRAP_USB_MODE_DEVICE)
 		return;
 
-	ath79_device_reset_clear(AR934X_RESET_USBSUS_OVERRIDE);
+	ath79_device_reset_set(AR934X_RESET_USBSUS_OVERRIDE);
 	udelay(1000);
 
-	ath79_device_reset_set(AR934X_RESET_USB_PHY);
+	ath79_device_reset_clear(AR934X_RESET_USB_PHY);
 	udelay(1000);
 
-	ath79_device_reset_set(AR934X_RESET_USB_PHY_ANALOG);
+	ath79_device_reset_clear(AR934X_RESET_USB_PHY_ANALOG);
 	udelay(1000);
 
-	ath79_device_reset_set(AR934X_RESET_USB_HOST);
+	ath79_device_reset_clear(AR934X_RESET_USB_HOST);
 	udelay(1000);
 
 	ath79_ehci_resources[0].start = AR934X_EHCI_BASE;