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 <quic_zhentan@quicinc.com>
This commit is contained in:
Zhenbin Tan 2024-07-30 12:16:04 +08:00
parent 11673cbf0c
commit dd441e0e97

View File

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