# \[PATCH\] Input: mpu3050: set IRQF\_ONESHOT when requesting the interrupt

- From: Stephen Warren \<hidden\>
- Date: 2012-05-01 17:46:54 
- List: linux-input
- Page: https://ratatoskr.run/linux-input/2012/05/8919407
- Thread: https://ratatoskr.run/linux-input/2012/05/8919407/t.md

```text
From: Stephen Warren <redacted>

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 <redacted>
---
 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

```
