ARM: tegra: support multiple wake sources with same irq
authorVarun Wadekar <vwadekar@nvidia.com>
Tue, 31 Jul 2012 10:57:34 +0000 (15:57 +0530)
committerVarun Colbert <vcolbert@nvidia.com>
Thu, 2 Aug 2012 02:10:44 +0000 (19:10 -0700)
commit02569866aeb63d3404351f90d6ba2d88b3087282
tree8b040b9fe9c262df8e858e910fd53217db683a7a
parentb34dc18e7d9fb67f11980fe4737ba1abcc3a34be
ARM: tegra: support multiple wake sources with same irq

Partial port of commit 48651d264bdb2ff90624e965b8a68b011077ca7c
(http://git-master/r/103140).

Earlier implementation only allowed single wake source
for a particular irq in wake table. Changed implementation
to support multiple wake sources ==> single irq mapping.

Test: Cardhu boots up fine and can pass 100 suspend-resume
cycles.

Change-Id: I3345181d1e9a084e8b745234c4ffb11df5c68ff3
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/119641
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
arch/arm/mach-tegra/include/mach/legacy_irq.h
arch/arm/mach-tegra/irq.c
drivers/gpio/gpio-tegra.c