[PATCH 5/5] Input: tsc2007 - use IRQF_NO_AUTOEN when requesting interrupt

From: Dmitry Torokhov

Date: Thu Nov 12 2026 - 01:55:31 EST


Request the threaded interrupt with IRQF_NO_AUTOEN so that the interrupt
line remains disabled after probe until the input device is opened by
user space. Explicitly initialize the stopped flag to true before
requesting the interrupt and drop the immediate tsc2007_stop() call.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx>
---
drivers/input/touchscreen/tsc2007_core.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/input/touchscreen/tsc2007_core.c b/drivers/input/touchscreen/tsc2007_core.c
index 1fb2c26189ba..7660504f58ff 100644
--- a/drivers/input/touchscreen/tsc2007_core.c
+++ b/drivers/input/touchscreen/tsc2007_core.c
@@ -270,17 +270,17 @@ static int tsc2007_input_configure(struct tsc2007 *ts)
input_set_abs_params(input_dev, ABS_PRESSURE, 0, MAX_12BIT,
ts->fuzzz, 0);

+ ts->stopped = true;
+
err = devm_request_threaded_irq(dev, ts->irq,
NULL, tsc2007_soft_irq,
- IRQF_ONESHOT,
+ IRQF_ONESHOT | IRQF_NO_AUTOEN,
dev->driver->name, ts);
if (err) {
dev_err(dev, "Failed to request irq %d: %d\n", ts->irq, err);
return err;
}

- tsc2007_stop(ts);
-
err = input_register_device(input_dev);
if (err) {
dev_err(dev, "Failed to register input device: %d\n", err);
--
2.56.0.567.gdb80ae8cd5-goog