msm: ipa4: Don't decrease the client count if suspend fail

Because of decreasing the client count not able undo the
last client suspend operation. Add changes to avoid decrementing
the client count, it will allow undo last client suspend operation.

Change-Id: I486550734a1e8181aa4be19972b54c818ad75eeb
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
This commit is contained in:
Ashok Vuyyuru 2019-09-04 11:22:41 +05:30
commit 26104d42c9

View file

@ -7774,12 +7774,12 @@ do_prod:
return 0;
undo_prod:
for (client--; client < IPA_CLIENT_MAX && client >= 0; client--)
for (client; client <= IPA_CLIENT_MAX && client >= 0; client--)
if (IPA_CLIENT_IS_APPS_PROD(client))
_ipa_suspend_resume_pipe(client, !suspend);
client = IPA_CLIENT_MAX;
undo_cons:
for (client--; client < IPA_CLIENT_MAX && client >= 0; client--)
for (client; client <= IPA_CLIENT_MAX && client >= 0; client--)
if (IPA_CLIENT_IS_APPS_CONS(client))
_ipa_suspend_resume_pipe(client, !suspend);
return res;