summaryrefslogtreecommitdiff
path: root/arch/arm/plat-mxc/usb_wakeup.c
diff options
context:
space:
mode:
authorPeter Chen <peter.chen@freescale.com>2012-03-06 10:10:22 +0800
committerPeter Chen <peter.chen@freescale.com>2012-03-07 15:01:35 +0800
commit1e0de4490dd1f41841b2f22e725520dbf3928b65 (patch)
treeb4f66dd825a2431daa0934d05a0593d6d839e717 /arch/arm/plat-mxc/usb_wakeup.c
parent7f40896b71be935f53bf703c686c619062799c6f (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/plat-mxc/usb_wakeup.c')
-rwxr-xr-xarch/arm/plat-mxc/usb_wakeup.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/plat-mxc/usb_wakeup.c b/arch/arm/plat-mxc/usb_wakeup.c
index 9afd479aaf19..4704eae91a51 100755
--- a/arch/arm/plat-mxc/usb_wakeup.c
+++ b/arch/arm/plat-mxc/usb_wakeup.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2011 Freescale Semiconductor, Inc. All Rights Reserved.
+ * Copyright (C) 2011-2012 Freescale Semiconductor, Inc. All Rights Reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -118,6 +118,7 @@ static void wakeup_event_handler(struct wakeup_ctrl *ctrl)
usb_pdata->irq_delay = 0;
wakeup_evt = is_wakeup(usb_pdata);
+ usb_pdata->wakeup_event = wakeup_evt;
if (wakeup_evt != WAKEUP_EVENT_INVALID) {
if (usb2_is_in_lowpower(ctrl))
if (usb_pdata->usb_clock_for_pm)