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

Commit 841c1452 authored by Skylar Chang's avatar Skylar Chang
Browse files

msm: ipa: continue probe on ipc log failure



Do not fail IPA probe function if IPC logging is not available.

Change-Id: I1ac1765e1df8cb1ea5f19a7ec639b307d867a28a
CRs-Fixed: 2028149
Acked-by: default avatarAdy Abraham <adya@qti.qualcomm.com>
Signed-off-by: default avatarSkylar Chang <chiaweic@codeaurora.org>
parent 664e2421
Loading
Loading
Loading
Loading
+4 −7
Original line number Diff line number Diff line
@@ -4343,11 +4343,8 @@ static int ipa3_pre_init(const struct ipa3_plat_drv_res *resource_p,
	}

	ipa3_ctx->logbuf = ipc_log_context_create(IPA_IPC_LOG_PAGES, "ipa", 0);
	if (ipa3_ctx->logbuf == NULL) {
		IPAERR("failed to get logbuf\n");
		result = -ENOMEM;
		goto fail_logbuf;
	}
	if (ipa3_ctx->logbuf == NULL)
		IPAERR("failed to create IPC log, continue...\n");

	ipa3_ctx->pdev = ipa_dev;
	ipa3_ctx->uc_pdev = ipa_dev;
@@ -4793,8 +4790,8 @@ static int ipa3_pre_init(const struct ipa3_plat_drv_res *resource_p,
fail_mem_ctrl:
	kfree(ipa3_ctx->ipa_tz_unlock_reg);
fail_tz_unlock_reg:
	if (ipa3_ctx->logbuf)
		ipc_log_context_destroy(ipa3_ctx->logbuf);
fail_logbuf:
	kfree(ipa3_ctx);
	ipa3_ctx = NULL;
fail_mem_ctx: