mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 16:16:15 -04:00
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:
parent
40e62ce36a
commit
26104d42c9
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue