diff options
author | Zhang Yan <b34916@freescale.com> | 2010-12-24 10:45:21 +0800 |
---|---|---|
committer | Alan Tull <alan.tull@freescale.com> | 2011-02-03 16:34:41 -0600 |
commit | 32a628eda410e2c4295bf3f649661033c9c7c6dc (patch) | |
tree | 9db2d8e43061b48af1e82ff99142e6340c58f47b /include | |
parent | 39eec5265cb217092fa0dce48e9f95f53c341660 (diff) |
ENGR00137317-2 USB: handle non-intent wakeup irq triggered by PHCD change
PORTSC PHCD will be changed while system shuts down usb host. This triggers
wake-up interrupt. But it's not host wake-up or device wake-up. OWIR bit in
USBCTRL doesn't be cleared. It keeps bring interrupt on. So
- Clear OWIR bit in wakeup ISR if host/device doesn't need to wake up.
- Close wakeup irq before shut down USB host.
Signed-off-by: Zhang Yan <b34916@freescale.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/fsl_devices.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/fsl_devices.h b/include/linux/fsl_devices.h index 4f68788c55e0..01fa5355f78c 100644 --- a/include/linux/fsl_devices.h +++ b/include/linux/fsl_devices.h @@ -128,6 +128,7 @@ struct fsl_usb2_platform_data { struct fsl_usb2_wakeup_platform_data { char *name; void (*usb_clock_for_pm) (bool); + void (*usb_wakeup_exhandle) (void); struct fsl_usb2_platform_data *usb_pdata[3]; /* This waitqueue is used to wait "usb_wakeup thread" to finish * during system resume routine. "usb_wakeup theard" should be finished |