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

Commit abb512e3 authored by Ashok Vuyyuru's avatar Ashok Vuyyuru
Browse files

msm: ipa3: Fix to save the ntn buffers in SMMU disabled case



Not able to unmap the buffers due not saving data buffers
when SMMU disabled on EMAC side. Adding changes to save the
data buffer list in EMAC SMMU disabled case also.

Change-Id: Ia22110b450477927c35942f2161c2730086da892
Signed-off-by: default avatarAshok Vuyyuru <avuyyuru@codeaurora.org>
parent 220af9d0
Loading
Loading
Loading
Loading
+10 −14
Original line number Diff line number Diff line
@@ -540,21 +540,17 @@ int ipa_uc_ntn_conn_pipes(struct ipa_ntn_conn_in_params *inp,
		goto fail;
	}

	if (ntn_ctx->conn.dl.smmu_enabled) {
		result = ipa_uc_ntn_alloc_conn_smmu_info(&ntn_ctx->conn.dl,
			&inp->dl);
	result = ipa_uc_ntn_alloc_conn_smmu_info(&ntn_ctx->conn.dl, &inp->dl);
	if (result) {
		IPA_UC_OFFLOAD_ERR("alloc failure on TX\n");
		goto fail;
	}
		result = ipa_uc_ntn_alloc_conn_smmu_info(&ntn_ctx->conn.ul,
			&inp->ul);
	result = ipa_uc_ntn_alloc_conn_smmu_info(&ntn_ctx->conn.ul, &inp->ul);
	if (result) {
		ipa_uc_ntn_free_conn_smmu_info(&ntn_ctx->conn.dl);
		IPA_UC_OFFLOAD_ERR("alloc failure on RX\n");
		goto fail;
	}
	}

fail:
	if (!ipa_pm_is_used())