From 2b54370de16033a2102d901e3c0e6e3112f59ae6 Mon Sep 17 00:00:00 2001 From: Michael Adisumarta Date: Wed, 16 Oct 2019 09:20:13 -0700 Subject: [PATCH] msm: ipa: Retry gsi channel stop for producer channels Retry gsi channel stop for IPA client producer channels along with the consumer channels. Change-Id: I60a3e93a1923fdad9ebc74197917c46551854822 Signed-off-by: Michael Adisumarta --- drivers/platform/msm/ipa/ipa_v3/ipa_utils.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/drivers/platform/msm/ipa/ipa_v3/ipa_utils.c b/drivers/platform/msm/ipa/ipa_v3/ipa_utils.c index d0aeeab0a143..d83cb46c2f5b 100644 --- a/drivers/platform/msm/ipa/ipa_v3/ipa_utils.c +++ b/drivers/platform/msm/ipa/ipa_v3/ipa_utils.c @@ -7930,15 +7930,11 @@ static int __ipa3_stop_gsi_channel(u32 clnt_hdl) client_type); } } - if (IPA_CLIENT_IS_PROD(ep->client)) { - IPADBG("Calling gsi_stop_channel ch:%lu\n", - ep->gsi_chan_hdl); - res = gsi_stop_channel(ep->gsi_chan_hdl); - IPADBG("gsi_stop_channel ch: %lu returned %d\n", - ep->gsi_chan_hdl, res); - return res; - } + /* + * Apply the GSI stop retry logic if GSI returns err code to retry. + * Apply the retry logic for ipa_client_prod as well as ipa_client_cons. + */ for (i = 0; i < IPA_GSI_CHANNEL_STOP_MAX_RETRY; i++) { IPADBG("Calling gsi_stop_channel ch:%lu\n", ep->gsi_chan_hdl);