Ver código fonte

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 <[email protected]>
Akshay Gola 9 meses atrás
pai
commit
d0a0b026b9
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      raydium/raydium_driver.c

+ 1 - 1
raydium/raydium_driver.c

@@ -1380,7 +1380,7 @@ static void raydium_ts_do_suspend(void)
 
 	if (g_u8_raw_data_type == 0)
 		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");
 		return;
 	}