From 6a0faeb112eab1e57daadf614c49d1bee480d8a9 Mon Sep 17 00:00:00 2001 From: Sravan Kumar Kairam Date: Mon, 26 Mar 2018 16:25:53 +0530 Subject: [PATCH] qcacld-3.0: Reset the IPA resource loading flag When IPA RM resources are not granted immediately, IPA WDI pipes activation is deferred and activated from the RM notify callback when resources are granted. In this case after pipe activation resource loading flag is not set to true. As a result when IPA wants to access the WLAN resource driver sends wrong status as resource loading in progress. So reset the flag when IPA WDI pipes activation is deferred and activated from rm notification handler. Change-Id: Ia336181f0471a9a8d6c853aefa19a23102077222 CRS-Fixed: 2198206 --- components/ipa/core/src/wlan_ipa_rm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/components/ipa/core/src/wlan_ipa_rm.c b/components/ipa/core/src/wlan_ipa_rm.c index e761ea704eb6..600e7103b413 100644 --- a/components/ipa/core/src/wlan_ipa_rm.c +++ b/components/ipa/core/src/wlan_ipa_rm.c @@ -253,6 +253,7 @@ wlan_ipa_uc_rm_notify_handler(struct wlan_ipa_priv *ipa_ctx, if ((!ipa_ctx->resource_unloading) && (!ipa_ctx->activated_fw_pipe)) { wlan_ipa_uc_enable_pipes(ipa_ctx); + ipa_ctx->resource_loading = false; } qdf_mutex_release(&ipa_ctx->ipa_lock); break;