summaryrefslogtreecommitdiff
path: root/arch/arm/mach-mx6/usb_h2.c
diff options
context:
space:
mode:
authorPeter Chen <peter.chen@freescale.com>2012-03-06 10:10:22 +0800
committerJason Liu <r64343@freescale.com>2012-07-20 13:23:48 +0800
commitd24899091ff14ae100315744b703ab3340beafdf (patch)
tree807563597e66a3f0e4ff9b8929c476c94fb19b27 /arch/arm/mach-mx6/usb_h2.c
parent416ef3cc9f84e20218a228f801aa45e9a2617cfc (diff)
ENGR00176147-2: usb: pass the wakeup event to pdata
The host driver needs to differentiate wakeup event. Signed-off-by: Peter Chen <peter.chen@freescale.com>
Diffstat (limited to 'arch/arm/mach-mx6/usb_h2.c')
-rw-r--r--arch/arm/mach-mx6/usb_h2.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/mach-mx6/usb_h2.c b/arch/arm/mach-mx6/usb_h2.c
index 4e78ad3a0cf9..a671a958da75 100644
--- a/arch/arm/mach-mx6/usb_h2.c
+++ b/arch/arm/mach-mx6/usb_h2.c
@@ -149,7 +149,7 @@ static enum usb_wakeup_event _is_usbh2_wakeup(struct fsl_usb2_platform_data *pda
u32 wakeup_req = USB_H2_CTRL & UCTRL_OWIR;
if (wakeup_req)
- return !WAKEUP_EVENT_INVALID;
+ return WAKEUP_EVENT_DPDM;
pr_err("host2, %s, invalid wake up\n", __func__);
return WAKEUP_EVENT_INVALID;
}
@@ -158,7 +158,6 @@ static void h2_wakeup_handler(struct fsl_usb2_platform_data *pdata)
{
_wake_up_enable(pdata, false);
_phy_lowpower_suspend(pdata, false);
- pdata->wakeup_event = 1;
}
static void usbh2_wakeup_event_clear(void)