summaryrefslogtreecommitdiff
path: root/arch/arm/mach-mx5/usb_h1.c
diff options
context:
space:
mode:
authorPeter Chen <peter.chen@freescale.com>2010-11-30 12:42:20 +0800
committerAlan Tull <alan.tull@freescale.com>2011-02-03 16:32:40 -0600
commit05351bb3bbc517ebfd86ea917eb84d24661c28ee (patch)
tree2b97dc554387349e8a7a255d437fa9be1aa08268 /arch/arm/mach-mx5/usb_h1.c
parent23aae3a2f7c071810f20094c40b54592c16bf556 (diff)
ENGR00134154-2 MSL: add sync between usb resume and usb wakeup thread for MX5x
The usb wakeup thread should be prior to usb system resume during usb wakeup process. It adds wait_event_interruptible at usb resume process, and the usb wakeup irq will set event, and the usb wakeup thread will clear event. Signed-off-by: Peter Chen <peter.chen@freescale.com>
Diffstat (limited to 'arch/arm/mach-mx5/usb_h1.c')
-rw-r--r--arch/arm/mach-mx5/usb_h1.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-mx5/usb_h1.c b/arch/arm/mach-mx5/usb_h1.c
index b41a0d0a37a8..1a86ae2e4b1e 100644
--- a/arch/arm/mach-mx5/usb_h1.c
+++ b/arch/arm/mach-mx5/usb_h1.c
@@ -207,6 +207,7 @@ void __init mx5_usbh1_init(void)
usbh1_config.gpio_usb_inactive = gpio_usbh1_inactive;
}
mxc_register_device(&mxc_usbh1_device, &usbh1_config);
+ usbh1_config.wakeup_pdata = &usbh1_wakeup_config;
mxc_register_device(&mxc_usbh1_wakeup_device, &usbh1_wakeup_config);
}