From 12557c708ede4fab19e242925ca3e7f0c7b9681f Mon Sep 17 00:00:00 2001 From: electimon Date: Tue, 11 Jul 2023 09:55:37 +0800 Subject: [PATCH] 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 Change-Id: I6142eadb7613b65d53642176a82ae757fb94a78b Signed-off-by: Sevenrock --- .../input/touchscreen/touchscreen_mmi/touchscreen_mmi_class.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/touchscreen_mmi/touchscreen_mmi_class.c b/drivers/input/touchscreen/touchscreen_mmi/touchscreen_mmi_class.c index 056020e5c916..ca08cb6c9550 100644 --- a/drivers/input/touchscreen/touchscreen_mmi/touchscreen_mmi_class.c +++ b/drivers/input/touchscreen/touchscreen_mmi/touchscreen_mmi_class.c @@ -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); }