[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20141108103707.45bcc7e3@notabene.brown>
Date: Sat, 8 Nov 2014 10:37:07 +1100
From: NeilBrown <neilb@...e.de>
To: Dmitry Torokhov <dmitry.torokhov@...il.com>
Cc: linux-input@...r.kernel.org, linux-kernel@...r.kernel.org,
GTA04 owners <gta04-owner@...delico.com>
Subject: [PATCH] Input: gpio_keys: Make sure wake-up buttons work.
If a key is to be used for wake-up, we must not disable
the interrupt during suspend.
Signed-off-by: NeilBrown <neilb@...e.de>
diff --git a/drivers/input/keyboard/gpio_keys.c b/drivers/input/keyboard/gpio_keys.c
index 8c98e97f8e41..0b5e54ae343e 100644
--- a/drivers/input/keyboard/gpio_keys.c
+++ b/drivers/input/keyboard/gpio_keys.c
@@ -526,6 +526,8 @@ 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 = devm_request_any_context_irq(&pdev->dev, bdata->irq,
isr, irqflags, desc, bdata);
Content of type "application/pgp-signature" skipped
Powered by blists - more mailing lists