Explorar el Código

msm: ipa3: Adding changes to use new deepsleep API

In latest kernel version old variable are depreciated so
adding changes to use new deepsleep API to check deepsleep state.

Change-Id: I135b2397b88234bec0a7f3d66b2f18f1520a2c71
Signed-off-by: Ashok Vuyyuru [email protected]
Ashok Vuyyuru hace 2 años
padre
commit
62baf29205
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      drivers/platform/msm/ipa/ipa_v3/ipa.c

+ 2 - 2
drivers/platform/msm/ipa/ipa_v3/ipa.c

@@ -507,7 +507,7 @@ static int ipa_pm_notify(struct notifier_block *b, unsigned long event, void *p)
 	switch (event) {
 		case PM_POST_SUSPEND:
 #ifdef CONFIG_DEEPSLEEP
-			if (mem_sleep_current == PM_SUSPEND_MEM && ipa3_ctx->deepsleep) {
+			if (pm_suspend_via_firmware() && ipa3_ctx->deepsleep) {
 				IPADBG("Enter deepsleep resume\n");
 				ipa3_deepsleep_resume();
 				IPADBG("Exit deepsleep resume\n");
@@ -11686,7 +11686,7 @@ int ipa3_ap_suspend(struct device *dev)
 	}
 
 #ifdef CONFIG_DEEPSLEEP
-	if (mem_sleep_current == PM_SUSPEND_MEM) {
+	if (pm_suspend_via_firmware()) {
 		IPADBG("Enter deepsleep suspend\n");
 		ipa3_deepsleep_suspend();
 		IPADBG("Exit deepsleep suspend\n");