diff options
author | Chanwoo Choi <cw00.choi@samsung.com> | 2014-07-10 20:10:17 +0900 |
---|---|---|
committer | Chanho Park <chanho61.park@samsung.com> | 2014-11-18 12:00:15 +0900 |
commit | 7226f38f52e85a71efe6f6201f85473da2d887b2 (patch) | |
tree | d4dbc884d81703f62e42ea00d2d9b65ee4a22171 | |
parent | a9ce7abb542b7dd82a9bc9b23e94728b57f95e58 (diff) | |
download | linux-3.10-7226f38f52e85a71efe6f6201f85473da2d887b2.tar.gz linux-3.10-7226f38f52e85a71efe6f6201f85473da2d887b2.tar.bz2 linux-3.10-7226f38f52e85a71efe6f6201f85473da2d887b2.zip |
input: gpio_keys: Add IRQF_NO_SUSPEND flag to wake-up from freeze state
This patch add IRQF_NO_SUSPEND flag before requesting interrupt handler
if button->wakeup is true. If ther interrupt of gpio-keys hasn't included
IRQF_NO_SUSPEND, wouldn't wake-up from freeze state when pressing button.
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
-rw-r--r-- | drivers/input/keyboard/gpio_keys.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/input/keyboard/gpio_keys.c b/drivers/input/keyboard/gpio_keys.c index b29ca651a39..0b8ae51f497 100644 --- a/drivers/input/keyboard/gpio_keys.c +++ b/drivers/input/keyboard/gpio_keys.c @@ -502,6 +502,9 @@ static int gpio_keys_setup_key(struct platform_device *pdev, if (!button->can_disable) irqflags |= IRQF_SHARED; + if (button->wakeup) + irqflags |= IRQF_NO_SUSPEND; + error = request_any_context_irq(bdata->irq, isr, irqflags, desc, bdata); if (error < 0) { dev_err(dev, "Unable to claim irq %d; error %d\n", |