diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2014-04-15 19:16:57 +0530 |
---|---|---|
committer | Seema Khowala <seemaj@nvidia.com> | 2014-04-23 14:05:10 -0700 |
commit | 98b3df4596794c109ae6534b7f1933a6127be178 (patch) | |
tree | abdca2a1973a30e6d7ce301540513c64b3a1b05f /drivers/input | |
parent | e9a1d6c3fbe677ce2f2fb163766bca859b1b4514 (diff) |
input: gpio-keys: set IRQF_EARLY_RESUME for wakeup irq keys
If key is interrupt key and wakup configured then set irq flags
to IRQF_EARLY_RESUME so that this interrupt can be enabled
before servicing any other interrupts.
Change-Id: I5cb8d7cf913f2f6192e69efeffde9e0b2d301185
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/396848
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/keyboard/gpio_keys.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/input/keyboard/gpio_keys.c b/drivers/input/keyboard/gpio_keys.c index 13d80878362e..282880dc8fb3 100644 --- a/drivers/input/keyboard/gpio_keys.c +++ b/drivers/input/keyboard/gpio_keys.c @@ -506,6 +506,8 @@ static int gpio_keys_setup_key(struct platform_device *pdev, isr = gpio_keys_irq_isr; irqflags = 0; + if (button->wakeup) + irqflags |= IRQF_EARLY_RESUME; } input_set_capability(input, button->type ?: EV_KEY, button->code); |