diff options
author | Bitan Biswas <bbiswas@nvidia.com> | 2012-07-13 15:59:37 +0530 |
---|---|---|
committer | Simone Willett <swillett@nvidia.com> | 2012-07-17 16:12:40 -0700 |
commit | 1a3f9e1735003466dc0eb733d3bc7c28aa124bb6 (patch) | |
tree | 718ea7e772750c239479feb93eea1c68cc6c2ecf | |
parent | 82e4e43d9520474a02f69c1ce284746fbd915fc9 (diff) |
gpio: tegra: disable non-wake source interrupts
Gpio interrupts for non-wake sources are disabled before suspend
bug 904746
Change-Id: I21f3e5798055cbae7324b1571291eab4538e256f
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/115654
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
-rw-r--r-- | drivers/gpio/gpio-tegra.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-tegra.c b/drivers/gpio/gpio-tegra.c index 49abdf016b26..63af4eac5e1f 100644 --- a/drivers/gpio/gpio-tegra.c +++ b/drivers/gpio/gpio-tegra.c @@ -6,7 +6,7 @@ * Author: * Erik Gilling <konkers@google.com> * - * Copyright (c) 2011 NVIDIA Corporation. + * Copyright (c) 2011-2012, NVIDIA CORPORATION. All rights reserved. * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and @@ -390,6 +390,9 @@ static int tegra_gpio_suspend(void) bank->oe[p] = __raw_readl(GPIO_OE(gpio)); bank->int_enb[p] = __raw_readl(GPIO_INT_ENB(gpio)); bank->int_lvl[p] = __raw_readl(GPIO_INT_LVL(gpio)); + + /* disable gpio interrupts that are not wake sources */ + __raw_writel(bank->wake_enb[p], GPIO_INT_ENB(gpio)); } } local_irq_restore(flags); |