Skip to contentSkip to conversation

input: st1232: Add IRQF_NO_SUSPEND flag

PATCH New Bastian Hecht 1 participant 1 message Mar 21, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 input: st1232: Add IRQF_NO_SUSPEND flag

This is temporary workaround. Don't merge. See cover-letter "[PATCH 0/2] ARM: shmobile: sh73a0 Suspend-to-RAM" for more information.

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.

---
 drivers/input/touchscreen/st1232.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/input/touchscreen/st1232.c +1 -1
index d9d05e2..4f37199 100644
@@ -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;
Signature · 1 line
1.7.9.5