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

Commit 1758da06 authored by Shantanu Jain's avatar Shantanu Jain Committed by Gerrit - the friendly Code Review server
Browse files

input: touchscreen: Add threaded irq support to Goodix driver



Add threaded irq support to Goodix touchscreen driver to reduce
the time spent with interrupts diabled to a bare minimum by
pushing the processing out into the kernel thread.

Change-Id: I3ade13181957d327ad9d0266b1999a4b0f2d8d1a
Signed-off-by: default avatarShantanu Jain <shjain@codeaurora.org>
parent cf29d5ea
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1198,7 +1198,11 @@ static int gtp_request_irq(struct goodix_ts_data *ts)
	int ret;
	const u8 irq_table[] = GTP_IRQ_TAB;

	ret = request_irq(ts->client->irq, goodix_ts_irq_handler,
	GTP_DEBUG("INT trigger type:%x, irq=%d", ts->int_trigger_type,
			ts->client->irq);

	ret = request_threaded_irq(ts->client->irq, NULL,
			goodix_ts_irq_handler,
			irq_table[ts->int_trigger_type],
			ts->client->name, ts);
	if (ret) {