arm: tegra: pluto: fix LP0 resume handling error for wake0
Neil Patel [Mon, 10 Dec 2012 21:58:34 +0000 (16:58 -0500)]
During resume from LP0 due to MDM_COLDBOOT going low,
tegra_wake_to_irq() returns an error after seeing -EINVAL at index
0 of the tegra_wake_event_irq array. Since a gpio wake source is
mapped to index 0 in the tegra_gpio_wakes array, the value should
be -EAGAIN.

Bug 1195187

Change-Id: I534002727f0956867d5fdb182af2e63c1f023f0e
Signed-off-by: Neil Patel <neilp@nvidia.com>
Reviewed-on: http://git-master/r/169809
(cherry picked from commit d83ea92b1b3620ae639a2564f7b18d15d82354b6)
Reviewed-on: http://git-master/r/171449
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Steve Lin <stlin@nvidia.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

arch/arm/mach-tegra/wakeups-t11x.c

index 5c6ff86..2bf8917 100644 (file)
@@ -87,7 +87,7 @@ static int tegra_gpio_wakes[] = {
 };
 
 static int tegra_wake_event_irq[] = {
-       -EINVAL, /* ULPI DATA4 */               /* wake0 */
+       -EAGAIN, /* ULPI DATA4 */               /* wake0 */
        -EAGAIN,                                /* wake1 */
        -EAGAIN,                                /* wake2 */
        INT_SDMMC3, /* SDMMC3 DAT1 */           /* wake3 */