Browse Source

touch: synaptics_tcm: disable touch irq during suspend

Disable touch irq during suspend.

Change-Id: Ic2c4eac2dece9c4290b04b7936f99b2d3dcbb131
Signed-off-by: Anand Tarakh <[email protected]>
Anand Tarakh 1 year ago
parent
commit
ec94fd9408
1 changed files with 4 additions and 0 deletions
  1. 4 0
      synaptics_tcm/synaptics_tcm_core.c

+ 4 - 0
synaptics_tcm/synaptics_tcm_core.c

@@ -3036,6 +3036,10 @@ static int syna_tcm_suspend(struct device *dev)
 		}
 	}
 
+#ifndef WAKEUP_GESTURE
+	tcm_hcd->enable_irq(tcm_hcd, false, true);
+#endif
+
 	retval = syna_tcm_enable_regulator(tcm_hcd, false);
 	if (retval < 0) {
 		LOGE(tcm_hcd->pdev->dev.parent,