Эх сурвалжийг харах

touch: raydium: Disable IRQ wake on offload entry

Disable IRQ wake, it should not wakeup system
during touch-offload.

Change-Id: I0d493faec4569a8a006f7ca375bf460bf207b389
Signed-off-by: Zhenbin Tan <[email protected]>
Zhenbin Tan 7 сар өмнө
parent
commit
dd441e0e97
1 өөрчлөгдсөн 11 нэмэгдсэн , 0 устгасан
  1. 11 0
      raydium/raydium_sysfs.c

+ 11 - 0
raydium/raydium_sysfs.c

@@ -324,6 +324,17 @@ static void raydium_ts_touch_entry(void)
 		if (gpio_is_valid(g_raydium_ts->irq_gpio))
 			gpio_free(g_raydium_ts->irq_gpio);
 
+#ifdef GESTURE_EN
+		if (device_may_wakeup(&g_raydium_ts->client->dev)) {
+			LOGD(LOG_INFO, "[touch]%s Device may wakeup\n", __func__);
+			if (g_raydium_ts->irq_wake) {
+				disable_irq_wake(g_raydium_ts->irq);
+				g_raydium_ts->irq_wake = false;
+			}
+		} else
+			LOGD(LOG_INFO, "[touch]%s Device not wakeup\n", __func__);
+#endif
+
 		raydium_irq_control(DISABLE);
 
 		if (!cancel_work_sync(&g_raydium_ts->work))