diff options
author | davidycchen <davidycchen@google.com> | 2022-04-18 14:48:15 +0800 |
---|---|---|
committer | Yen-Chao Chen <davidycchen@google.com> | 2022-04-18 07:05:08 +0000 |
commit | 55784dc0c6a43f8b0437848d80c60c77a31c45a2 (patch) | |
tree | c2f33421a6d4c78cdcca398fa8366efbaf45df69 | |
parent | f15105e96ee6a44b4433832b93a26310d8fdfde4 (diff) | |
download | synaptics_touch-55784dc0c6a43f8b0437848d80c60c77a31c45a2.tar.gz |
synaptics: release all touch events when the touch resumes
Release all touch events when the touch resumes to make sure there is
no any stuck event after the touch suspends.
Bug: 228422103
Test: No stuck point after suspend and resume.
Signed-off-by: davidycchen <davidycchen@google.com>
Change-Id: I30f3e4a00be1a07d44ae59c47699a331930960ef
-rw-r--r-- | syna_tcm2.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/syna_tcm2.c b/syna_tcm2.c index 5c19330..b0cef72 100644 --- a/syna_tcm2.c +++ b/syna_tcm2.c @@ -1934,6 +1934,9 @@ static int syna_dev_resume(struct device *dev) if (hw_if->udfps_x != 0 && hw_if->udfps_y != 0) syna_check_finger_status(tcm); + /* clear all input events */ + syna_dev_free_input_events(tcm); + #ifdef RESET_ON_RESUME LOGI("Do reset on resume\n"); |