All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Input: mpu3050: set IRQF_ONESHOT when requesting the interrupt
@ 2012-05-01 17:46 Stephen Warren
  2012-05-09  5:23 ` Dmitry Torokhov
  0 siblings, 1 reply; 6+ messages in thread
From: Stephen Warren @ 2012-05-01 17:46 UTC (permalink / raw)
  To: Dmitry Torokhov; +Cc: Thomas Gleixner, linux-input, Stephen Warren

From: Stephen Warren <swarren@nvidia.com>

Commit 1c6c695 "genirq: Reject bogus threaded irq requests" requires
that request_threaded_irq() either be passed an explicit handler, or
that IRQF_ONESHOT be set. Set this flag.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
---
 drivers/input/misc/mpu3050.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/input/misc/mpu3050.c b/drivers/input/misc/mpu3050.c
index 5403c57..306f84c 100644
--- a/drivers/input/misc/mpu3050.c
+++ b/drivers/input/misc/mpu3050.c
@@ -367,7 +367,7 @@ static int __devinit mpu3050_probe(struct i2c_client *client,
 
 	error = request_threaded_irq(client->irq,
 				     NULL, mpu3050_interrupt_thread,
-				     IRQF_TRIGGER_RISING,
+				     IRQF_TRIGGER_RISING | IRQF_ONESHOT,
 				     "mpu3050", sensor);
 	if (error) {
 		dev_err(&client->dev,
-- 
1.7.0.4


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-05-11 18:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-01 17:46 [PATCH] Input: mpu3050: set IRQF_ONESHOT when requesting the interrupt Stephen Warren
2012-05-09  5:23 ` Dmitry Torokhov
2012-05-09 11:48   ` Alan Cox
2012-05-09 19:35   ` Stephen Warren
2012-05-11  7:29     ` Dmitry Torokhov
2012-05-11 18:29       ` Stephen Warren

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.