arm: tegra: tegratab: KEY_UNKNOWN as default wakeup_key
Yong Goo Yi [Wed, 4 Sep 2013 05:35:01 +0000 (14:35 +0900)]
Key code of SW_LID is 0 same with KEY_RESERVED used as default value
when checking wakeup key so even though waking up by RTC or wl18xx,
gpio key driver works for SW_LID. It increases LP0 standby power.
Use KEY_UNKNOWN as default wakeup_key.

Bug 1361016

Change-Id: Id44f78214060eb702e3a44997c1722095c734195
Signed-off-by: Yong Goo Yi <yyi@nvidia.com>
(cherry picked from commit 92d89e9a95c077896ef60df08703475f284f26a1)
Reviewed-on: http://git-master/r/302280
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

arch/arm/mach-tegra/board-tegratab-kbc.c

index c3df56d..86e53aa 100644 (file)
@@ -89,7 +89,7 @@ static int tegratab_wakeup_key(void)
        else if (status & ((u64)1 << TEGRA_WAKE_GPIO_PO5))
                wakeup_key = SW_TABLET_MODE;
        else
-               wakeup_key = KEY_RESERVED;
+               wakeup_key = KEY_UNKNOWN;
 
        return wakeup_key;
 }