From 38f8cc8aaef22a0018d353fc5d14aca9330ec9af Mon Sep 17 00:00:00 2001 From: litong20 Date: Tue, 8 Jun 2021 16:56:37 +0800 Subject: [PATCH] Add sense off process to enter the idle process. Add sense off process berfore sense on to avoid the problem that tp firmware cannot exit the gesture mode normally. Change-Id: Ibb7a8572c168f8c4427c868fd8075ea086138243 Reviewed-on: https://gerrit.mot.com/1973335 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Jichao Zou Submit-Approved: Jira Key --- drivers/input/touchscreen/stmicro_mmi/fts.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/input/touchscreen/stmicro_mmi/fts.c b/drivers/input/touchscreen/stmicro_mmi/fts.c index a6025e58d6a5..20523b0418d3 100644 --- a/drivers/input/touchscreen/stmicro_mmi/fts.c +++ b/drivers/input/touchscreen/stmicro_mmi/fts.c @@ -3518,6 +3518,10 @@ static int fts_mode_handler(struct fts_ts_info *info, int force) __func__); } #endif + + logError(1, "%s %s: Sense OFF!\n", tag, __func__); + res |= setScanMode(SCAN_MODE_ACTIVE, 0x00); + /* if some selective scan want to be enabled can be done an or * of the following options */ /* settings[0] = ACTIVE_MULTI_TOUCH | ACTIVE_KEY | ACTIVE_HOVER