Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fbb0beb4 authored by Ashok Vuyyuru's avatar Ashok Vuyyuru Committed by Gerrit - the friendly Code Review server
Browse files

msm: ipa3: Increment the active client count after unsuspend apps pipe



Observing race condition if increment the client count before unsuspend
the pipes in SSR scenarios. Add changes to increment active client
count after unsuspend apps pipe.

Change-Id: Iff0643cb44a009a8d7b281fb63e6175080eeb7f4
Signed-off-by: default avatarAshok Vuyyuru <avuyyuru@codeaurora.org>
parent c5bc7f27
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3962,10 +3962,10 @@ void ipa3_inc_client_enable_clks(struct ipa_active_client_logging_info *id)
	}

	ipa3_enable_clks();
	atomic_inc(&ipa3_ctx->ipa3_active_clients.cnt);
	IPADBG_LOW("active clients = %d\n",
		atomic_read(&ipa3_ctx->ipa3_active_clients.cnt));
	ipa3_suspend_apps_pipes(false);
	atomic_inc(&ipa3_ctx->ipa3_active_clients.cnt);
	if (!ipa3_uc_state_check() &&
		(ipa3_ctx->ipa_hw_type == IPA_HW_v4_1)) {
		ipa3_read_mailbox_17(IPA_PC_RESTORE_CONTEXT_STATUS_SUCCESS);