edt-ft5x06: Empty all slots when unable to fetch data

This workarounds an issue of stuck touch points when turning
the panel off while touching the screen.
parent 000b9f9b
......@@ -221,6 +221,13 @@ static irqreturn_t edt_ft5x06_ts_isr(int irq, void *dev_id)
if (error) {
dev_err_ratelimited(dev, "Unable to fetch data, error: %d\n",
error);
// HACK: empty all slots on error
for (i = 0; i < tsdata->max_support_points; i++) {
input_mt_slot(tsdata->input, i);
input_mt_report_slot_state(tsdata->input, MT_TOOL_FINGER,
false);
}
input_sync(tsdata->input);
goto out;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment