From 3861cfd076e09c3e6e0f0e6d9d83e1fa1b055bbe Mon Sep 17 00:00:00 2001 From: haojl2 Date: Fri, 20 Jul 2018 11:26:59 +0800 Subject: [PATCH] synaptics_tcm: disable irq in early suspend After early suspend, LCD will turnoff power. If irq still enabled, there will be lots of I2C communication error. Change-Id: Icab52436d25f7f7ceeaace77286b2bbfa407e7a5 Signed-off-by: haojl2 Reviewed-on: https://gerrit.mot.com/1213096 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Jianqi Yang Submit-Approved: Jira Key --- .../input/touchscreen/synaptics_tcm_mmi/synaptics_tcm_core.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/input/touchscreen/synaptics_tcm_mmi/synaptics_tcm_core.c b/drivers/input/touchscreen/synaptics_tcm_mmi/synaptics_tcm_core.c index 7a341110a36d..13a32895bc02 100644 --- a/drivers/input/touchscreen/synaptics_tcm_mmi/synaptics_tcm_core.c +++ b/drivers/input/touchscreen/synaptics_tcm_mmi/synaptics_tcm_core.c @@ -3197,6 +3197,11 @@ static int syna_tcm_early_suspend(struct device *dev) mutex_unlock(&mod_pool.mutex); + +#ifndef WAKEUP_GESTURE + tcm_hcd->enable_irq(tcm_hcd, false, true); +#endif + return 0; }