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

Commit c060ef00 authored by Patrick Daly's avatar Patrick Daly
Browse files

iommu: arm-smmu: Allow creating DMA domains



Allow the iommu framework to create default domains.

Change-Id: I96207ea488bf6d266dbdf3a8b35f2fbdd27f3844
Signed-off-by: default avatarPatrick Daly <pdaly@codeaurora.org>
parent a067955a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2019,9 +2019,9 @@ static struct iommu_domain *arm_smmu_domain_alloc(unsigned type)
{
	struct arm_smmu_domain *smmu_domain;

	/* Do not support DOMAIN_DMA for now */
	if (type != IOMMU_DOMAIN_UNMANAGED &&
	    type != IOMMU_DOMAIN_IDENTITY)
	    type != IOMMU_DOMAIN_IDENTITY &&
	    type != IOMMU_DOMAIN_DMA)
		return NULL;
	/*
	 * Allocate the domain and initialise some of its data structures.