From 12c8c04b5ccbd61ea8deb11a7f7679ce0d55f2df Mon Sep 17 00:00:00 2001 From: haojl2 Date: Tue, 29 Jan 2019 14:44:04 +0800 Subject: [PATCH] himax_mmi: release all events before suspend. If there are some touch event not release before IC go to suspend. Driver helps to report up events before suspend. Change-Id: I02f43e42e65b93d555fedc6bead2c5959193f6ce Signed-off-by: haojl2 Reviewed-on: https://gerrit.mot.com/1302438 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wei Deng Reviewed-by: Jianqi Yang Submit-Approved: Jira Key --- drivers/input/touchscreen/himax_mmi/himax_common.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/input/touchscreen/himax_mmi/himax_common.c b/drivers/input/touchscreen/himax_mmi/himax_common.c index 94b1081af80a..6ea1958f194d 100644 --- a/drivers/input/touchscreen/himax_mmi/himax_common.c +++ b/drivers/input/touchscreen/himax_mmi/himax_common.c @@ -2886,6 +2886,7 @@ int himax_chip_common_suspend(struct himax_ts_data *ts) #endif himax_int_enable(0); + himax_report_all_leave_event(ts); g_core_fp.fp_suspend_ic_action(); if (!ts->use_irq) {