input: touchscreen: touchscreen_mmi: Check for pressed status before waking up for gesture

* If anything is pressed then it can be assumed that
  the display is either already in gesture mode or
  the display was in gesture before and a gesture was
  triggered. Don't interrupt in these cases.

test: Turn on UDFPS long press and lockscreen,
      reboot and before unlocking test long press

Signed-off-by: electimon <electimon@gmail.com>
Change-Id: I6142eadb7613b65d53642176a82ae757fb94a78b
Signed-off-by: Sevenrock <sevenrock@hotmail.de>
This commit is contained in:
electimon 2023-07-11 09:55:37 +08:00 • committed by Michael Bestas
commit 12557c708e
No known key found for this signature in database

View file

@ -370,7 +370,7 @@ static void gesture_set(struct ts_mmi_dev *touch_cdev,
sync = _gesture_set(touch_cdev, bit, enable);
mutex_unlock(&touch_cdev->extif_mutex);
if (sync)
if (sync && !touch_cdev->double_tap_pressed)
gesture_sync(touch_cdev);
}