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

Commit f3d8d106 authored by Amir Levy's avatar Amir Levy Committed by Gidon Studinski
Browse files

msm: ipa: add empty implementation for iommu functions



Workaround for code not compiling on 32 bit arch.

Change-Id: I4d0a93e1aeb4f275bbeb1975cc54fd979da52940
Signed-off-by: default avatarAmir Levy <alevy@codeaurora.org>
Signed-off-by: default avatarGidon Studinski <gidons@codeaurora.org>
parent 3416b361
Loading
Loading
Loading
Loading
+20 −0
Original line number Diff line number Diff line
@@ -209,6 +209,26 @@ enum ipa_smmu_cb_type {

static struct ipa_smmu_cb_ctx smmu_cb[IPA_SMMU_CB_MAX];

#if !defined(CONFIG_ARM_DMA_USE_IOMMU) && !defined(CONFIG_ARM64_DMA_USE_IOMMU)
struct dma_iommu_mapping *
arm_iommu_create_mapping(struct bus_type *bus, dma_addr_t base,
				size_t size)
{
	return NULL;
}

void arm_iommu_release_mapping(struct dma_iommu_mapping *mapping) { }

int arm_iommu_attach_device(struct device *dev,
					struct dma_iommu_mapping *mapping)
{
	return 0;
}

void arm_iommu_detach_device(struct device *dev) { }
#endif


struct iommu_domain *ipa_get_smmu_domain(void)
{
	if (smmu_cb[IPA_SMMU_CB_AP].valid) {