From 8eeb76e205ae2489edb13c922992c1dca3290cff Mon Sep 17 00:00:00 2001 From: dengwei1 Date: Mon, 15 Mar 2021 19:40:09 +0800 Subject: [PATCH] pstar: input touch fix disable irq panic input touch fix disable irq issue Change-Id: I401c2d24099f92fa91b8eae1d6ca917fdd9610c1 Signed-off-by: dengwei1 Reviewed-on: https://gerrit.mot.com/1901003 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- drivers/input/touchscreen/stmicro_mmi/fts_lib/ftsCore.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/stmicro_mmi/fts_lib/ftsCore.c b/drivers/input/touchscreen/stmicro_mmi/fts_lib/ftsCore.c index 50cb547e765f..df2384f1c188 100644 --- a/drivers/input/touchscreen/stmicro_mmi/fts_lib/ftsCore.c +++ b/drivers/input/touchscreen/stmicro_mmi/fts_lib/ftsCore.c @@ -875,10 +875,10 @@ int writeConfig(u16 offset, u8 *data, int len) */ int fts_disableInterrupt(void) { - unsigned long flag; + //unsigned long flag; if (getClient() != NULL) { - spin_lock_irqsave(&fts_int, flag); + //spin_lock_irqsave(&fts_int, flag); logError(0, "%s Number of disable = %d\n", tag, disable_irq_count); if (disable_irq_count == 0) { @@ -888,7 +888,7 @@ int fts_disableInterrupt(void) } /* disable_irq is re-entrant so it is required to keep track * of the number of calls of this when reenabling */ - spin_unlock_irqrestore(&fts_int, flag); + //spin_unlock_irqrestore(&fts_int, flag); logError(0, "%s Interrupt Disabled!\n", tag); return OK; } else {