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

Commit 686797dd authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: ipa: Add assert upon send command failure"

parents 84bb97db 3cdde2bd
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -666,6 +666,12 @@ int ipa_uc_send_cmd(u32 cmd, u32 opcode, u32 expected_status,
			retries++;
			if (retries == IPA_BAM_STOP_MAX_RETRY) {
				IPAERR("Failed after %d tries\n", retries);
				mutex_unlock(&ipa_ctx->uc_ctx.uc_lock);
				/*
				 * Max retry reached,
				 * assert to check why cmd send failed.
				 */
				ipa_assert();
			} else {
				/* sleep for short period to flush IPA */
				usleep_range(IPA_UC_WAIT_MIN_SLEEP,