msm: ipa3: Changes to resume only suspend operation complete

In suspend abort scenario before receving suspend callback and resume
it again causing issues. To avoid this scenario only if suspend completed
doing resume operation.

Change-Id: I0cf08b4e9ab4f74c44d4bcb14f9472b8332b5f7b
This commit is contained in:
Ashok Vuyyuru 2022-02-03 21:47:05 +05:30
commit 3b56c6e41a

View file

@ -459,7 +459,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) {
if (mem_sleep_current == PM_SUSPEND_MEM && ipa3_ctx->deepsleep) {
IPADBG("Enter deepsleep resume\n");
ipa3_deepsleep_resume();
IPADBG("Exit deepsleep resume\n");