pstar: input touch fix disable irq panic

input touch
fix disable irq issue

Change-Id: I401c2d24099f92fa91b8eae1d6ca917fdd9610c1
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1901003
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
dengwei1 2021-03-15 19:40:09 +08:00 • committed by Wei Deng
commit 8eeb76e205

View file

@ -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 {