From 26104d42c9783dbaa1341f38ca5e368688359e63 Mon Sep 17 00:00:00 2001 From: Ashok Vuyyuru Date: Wed, 4 Sep 2019 11:22:41 +0530 Subject: [PATCH] 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 --- drivers/platform/msm/ipa/ipa_v3/ipa_utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/platform/msm/ipa/ipa_v3/ipa_utils.c b/drivers/platform/msm/ipa/ipa_v3/ipa_utils.c index 75532d655e4d..98bf3569adf5 100644 --- a/drivers/platform/msm/ipa/ipa_v3/ipa_utils.c +++ b/drivers/platform/msm/ipa/ipa_v3/ipa_utils.c @@ -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;