Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 20b7adc8 authored by Shantanu Jain's avatar Shantanu Jain
Browse files

input: touchscreen: request threaded-only IRQs with IRQF_ONESHOT



Threaded IRQs without primary handler need to be requested with
IRQF_ONESHOT, otherwise the request will fail. This patch adds the
IRQF_ONESHOT to the focaltech touchscreen driver where it is
missing.

Change-Id: I429f48126bd5d28c6dbf6ba846175d5e643dd436
Signed-off-by: default avatarShantanu Jain <shjain@codeaurora.org>
parent cc38f099
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1550,7 +1550,8 @@ static int ft5x06_ts_probe(struct i2c_client *client,
	data->family_id = pdata->family_id;

	err = request_threaded_irq(client->irq, NULL,
				   ft5x06_ts_interrupt, pdata->irqflags,
				ft5x06_ts_interrupt,
				pdata->irqflags | IRQF_ONESHOT,
				client->dev.driver->name, data);
	if (err) {
		dev_err(&client->dev, "request irq failed\n");