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

Commit c8c404a0 authored by Michael Adisumarta's avatar Michael Adisumarta
Browse files

msm: ipa4: SMMU additional support for APPS



Change return result at the end of ap_cb_probe to return 0
to prevent a failed error message from printing. Remove
smmu_present flag.

Change-Id: I8b296b68341436f1a0dea2cd7ddbe0096ed17fe2
Crs:fixed: 2219398
Signed-off-by: default avatarMichael Adisumarta <madisuma@codeaurora.org>
parent 0e6e8a2a
Loading
Loading
Loading
Loading
+3 −9
Original line number Diff line number Diff line
@@ -4974,14 +4974,8 @@ static int ipa3_pre_init(const struct ipa3_plat_drv_res *resource_p,

	/* ipa3_ctx->pdev and ipa3_ctx->uc_pdev will be set in the smmu probes*/
	ipa3_ctx->master_pdev = ipa_pdev;
	ipa3_ctx->smmu_present = smmu_info.present;
	if (!ipa3_ctx->smmu_present) {
	for (i = 0; i < IPA_SMMU_CB_MAX; i++)
		ipa3_ctx->s1_bypass_arr[i] = true;
	} else {
		ipa3_ctx->s1_bypass_arr[IPA_SMMU_CB_AP] =
			smmu_info.s1_bypass_arr[IPA_SMMU_CB_AP];
	}

	ipa3_ctx->ipa_wrapper_base = resource_p->ipa_mem_base;
	ipa3_ctx->ipa_wrapper_size = resource_p->ipa_mem_size;
@@ -6175,7 +6169,7 @@ static int ipa_smmu_ap_cb_probe(struct device *dev)
	smmu_info.present[IPA_SMMU_CB_AP] = true;
	ipa3_ctx->pdev = dev;

	return result;
	return 0;
}

static int ipa_smmu_cb_probe(struct device *dev, enum ipa_smmu_cb_type cb_type)
+0 −1
Original line number Diff line number Diff line
@@ -1370,7 +1370,6 @@ struct ipa3_context {
	u32 ee;
	bool apply_rg10_wa;
	bool gsi_ch20_wa;
	bool smmu_present;
	bool s1_bypass_arr[IPA_SMMU_CB_MAX];
	u32 wdi_map_cnt;
	struct wakeup_source w_lock;