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

Commit c0c177f1 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: ipa: Moved uc loaded check before sending the uc command"

parents 0529f386 4acc88a7
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -2597,11 +2597,6 @@ void ipa3_q6_post_shutdown_cleanup(void)

	IPADBG_LOW("ENTER\n");

	if (!ipa3_ctx->uc_ctx.uc_loaded) {
		IPAERR("uC is not loaded. Skipping\n");
		return;
	}

	IPA_ACTIVE_CLIENTS_INC_SIMPLE();

	/* Handle the issue where SUSPEND was removed for some reason */
@@ -2618,6 +2613,11 @@ void ipa3_q6_post_shutdown_cleanup(void)

	ipa3_halt_q6_gsi_channels(prod);

	if (!ipa3_ctx->uc_ctx.uc_loaded) {
		IPAERR("uC is not loaded. Skipping\n");
		return;
	}

	for (client_idx = 0; client_idx < IPA_CLIENT_MAX; client_idx++)
		if (IPA_CLIENT_IS_Q6_PROD(client_idx)) {
			ep_idx = ipa3_get_ep_mapping(client_idx);