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

Commit 34332180 authored by Kyle Yan's avatar Kyle Yan Committed by Gerrit - the friendly Code Review server
Browse files

Merge "iommu/arm-smmu: Implement the .tlbi_domain op" into msm-4.8

parents accc331a 2dcc2349
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -2789,6 +2789,11 @@ static void arm_smmu_reg_write(struct iommu_domain *domain,
	arm_smmu_power_off(smmu);
}

static void arm_smmu_tlbi_domain(struct iommu_domain *domain)
{
	arm_smmu_tlb_inv_context(to_smmu_domain(domain));
}

static struct iommu_ops arm_smmu_ops = {
	.capable		= arm_smmu_capable,
	.domain_alloc		= arm_smmu_domain_alloc,
@@ -2809,6 +2814,7 @@ static struct iommu_ops arm_smmu_ops = {
	.trigger_fault		= arm_smmu_trigger_fault,
	.reg_read		= arm_smmu_reg_read,
	.reg_write		= arm_smmu_reg_write,
	.tlbi_domain		= arm_smmu_tlbi_domain,
};

static int arm_smmu_wait_for_halt(struct arm_smmu_device *smmu)