CHROMIUM: arm: s5p: add suspend/resume support to GPIO interrupts
authorVincent Palatin <vpalatin@chromium.org>
Thu, 21 Feb 2013 16:08:07 +0000 (08:08 -0800)
committerChromeBot <chrome-bot@google.com>
Fri, 22 Feb 2013 21:13:58 +0000 (13:13 -0800)
commita501a20b913a12c5fc2d774edba0d94718479337
treedb8ee90f1241decd5209bce8106a17f45ecc874b
parentcda4d9913bf1d7dbdc6dbbd7c1a1d7fcfccdf2d4
CHROMIUM: arm: s5p: add suspend/resume support to GPIO interrupts

We need to restore the GPIO external interrupt configuration and mask
registers after resume as the hardware has lost those registers content.
We just use the cache maintained by the generic-irq layer.

Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
BUG=chrome-os-partner:12625
TEST=manually check the EXTINT registers content before and after a
suspend/resume cycle, and no longer see an interrupt storm after
resuming.

Change-Id: I950362c8d2c7126f5a10502b414cee2d12d2cd4d
Reviewed-on: https://gerrit.chromium.org/gerrit/43726
Tested-by: Vincent Palatin <vpalatin@chromium.org>
Reviewed-by: Doug Anderson <dianders@chromium.org>
Commit-Queue: Vincent Palatin <vpalatin@chromium.org>
arch/arm/plat-s5p/irq-gpioint.c