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

Commit 3344c177 authored by Ghanim Fodi's avatar Ghanim Fodi Committed by Gerrit - the friendly Code Review server
Browse files

msm: ipa: Fix clock status check on panic



On Panic, active client maybe zero but clocks are on.
Check the actual IPA clock vote on panic handler
before collecting the IPA registers.

Change-Id: I04b55f0037fd861e3a78a47a581fa945adca165e
Signed-off-by: default avatarGhanim Fodi <gfodi@codeaurora.org>
parent 3006c8ea
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4411,7 +4411,7 @@ static int ipa3_panic_notifier(struct notifier_block *this,
	if (res)
		IPAERR("uC panic handler failed %d\n", res);

	if (atomic_read(&ipa3_ctx->ipa3_active_clients.cnt) != 0) {
	if (atomic_read(&ipa3_ctx->ipa_clk_vote)) {
		ipahal_print_all_regs(false);
		ipa_save_registers();
	}