input: touchscreen: raydium: Disable IRQ at deep sleep entry to avoid deep sleep abort

Add check to differentiate between normal and deep sleep suspend
call.

Change-Id: I88e23d101197ef9f3f926fb26523f9d651ee11f9
Signed-off-by: Akshay Gola <quic_agola@quicinc.com>
This commit is contained in:
Akshay Gola
2024-06-06 15:16:35 +05:30
parent b9e5c8a9e6
commit d0a0b026b9

View File

@@ -1380,7 +1380,7 @@ static void raydium_ts_do_suspend(void)
if (g_u8_raw_data_type == 0) if (g_u8_raw_data_type == 0)
g_u8_resetflag = false; g_u8_resetflag = false;
if (g_raydium_ts->is_suspend == 1) { if (g_raydium_ts->is_suspend == 1 && (pm_suspend_via_firmware() == false)) {
LOGD(LOG_WARNING, "[touch]Already in suspend state\n"); LOGD(LOG_WARNING, "[touch]Already in suspend state\n");
return; return;
} }