All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bastian Hecht <hechtb@gmail.com>
To: linux-input@vger.kernel.org, linux-sh@vger.kernel.org
Cc: Magnus Damm <magnus.damm@gmail.com>,
	Tony SIM <chinyeow.sim.xt@renesas.com>,
	Bastian Hecht <hechtb+renesas@gmail.com>
Subject: [PATCH] input: st1232: Add IRQF_NO_SUSPEND flag
Date: Thu, 14 Feb 2013 16:32:26 +0000	[thread overview]
Message-ID: <1360863132-11227-1-git-send-email-hechtb+renesas@gmail.com> (raw)

When registering the interrupt handler we add the IRQF_NO_SUSPEND flag
to save the IRQ line from being disabled during suspension. This way we
keep the ability to use the device as a wakeup source.

Signed-off-by: Bastian Hecht <hechtb+renesas@gmail.com>
---
 drivers/input/touchscreen/st1232.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/input/touchscreen/st1232.c b/drivers/input/touchscreen/st1232.c
index d9d05e2..4f37199 100644
--- a/drivers/input/touchscreen/st1232.c
+++ b/drivers/input/touchscreen/st1232.c
@@ -180,7 +180,7 @@ static int st1232_ts_probe(struct i2c_client *client,
 	input_set_abs_params(input_dev, ABS_MT_POSITION_Y, MIN_Y, MAX_Y, 0, 0);
 
 	error = request_threaded_irq(client->irq, NULL, st1232_ts_irq_handler,
-				     IRQF_ONESHOT, client->name, ts);
+			IRQF_ONESHOT | IRQF_NO_SUSPEND, client->name, ts);
 	if (error) {
 		dev_err(&client->dev, "Failed to register interrupt\n");
 		goto err_free_mem;
-- 
1.7.9.5


WARNING: multiple messages have this Message-ID (diff)
From: Bastian Hecht <hechtb@gmail.com>
To: linux-input@vger.kernel.org, linux-sh@vger.kernel.org
Cc: Magnus Damm <magnus.damm@gmail.com>,
	Tony SIM <chinyeow.sim.xt@renesas.com>,
	Bastian Hecht <hechtb+renesas@gmail.com>
Subject: [PATCH] input: st1232: Add IRQF_NO_SUSPEND flag
Date: Thu, 14 Feb 2013 11:32:12 -0600	[thread overview]
Message-ID: <1360863132-11227-1-git-send-email-hechtb+renesas@gmail.com> (raw)

When registering the interrupt handler we add the IRQF_NO_SUSPEND flag
to save the IRQ line from being disabled during suspension. This way we
keep the ability to use the device as a wakeup source.

Signed-off-by: Bastian Hecht <hechtb+renesas@gmail.com>
---
 drivers/input/touchscreen/st1232.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/input/touchscreen/st1232.c b/drivers/input/touchscreen/st1232.c
index d9d05e2..4f37199 100644
--- a/drivers/input/touchscreen/st1232.c
+++ b/drivers/input/touchscreen/st1232.c
@@ -180,7 +180,7 @@ static int st1232_ts_probe(struct i2c_client *client,
 	input_set_abs_params(input_dev, ABS_MT_POSITION_Y, MIN_Y, MAX_Y, 0, 0);
 
 	error = request_threaded_irq(client->irq, NULL, st1232_ts_irq_handler,
-				     IRQF_ONESHOT, client->name, ts);
+			IRQF_ONESHOT | IRQF_NO_SUSPEND, client->name, ts);
 	if (error) {
 		dev_err(&client->dev, "Failed to register interrupt\n");
 		goto err_free_mem;
-- 
1.7.9.5


             reply	other threads:[~2013-02-14 16:32 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-14 16:32 Bastian Hecht [this message]
2013-02-14 17:32 ` [PATCH] input: st1232: Add IRQF_NO_SUSPEND flag Bastian Hecht
2013-02-15  1:46 ` Magnus Damm
2013-02-15  1:46   ` Magnus Damm
2013-02-18 15:48   ` Bastian Hecht
2013-02-18 15:48     ` Bastian Hecht
2013-02-25 14:52     ` Magnus Damm
2013-02-25 14:52       ` Magnus Damm
2013-02-27 21:25       ` Bastian Hecht
2013-02-27 21:25         ` Bastian Hecht

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1360863132-11227-1-git-send-email-hechtb+renesas@gmail.com \
    --to=hechtb@gmail.com \
    --cc=chinyeow.sim.xt@renesas.com \
    --cc=hechtb+renesas@gmail.com \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-sh@vger.kernel.org \
    --cc=magnus.damm@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.