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

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

Merge "arm-smmu: Implement DOMAIN_ATTR_PAGE_TABLE_IS_COHERENT" into msm-4.9

parents 7272b362 05314f32
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -2587,6 +2587,12 @@ static int arm_smmu_domain_get_attr(struct iommu_domain *domain,
				    & (1 << DOMAIN_ATTR_EARLY_MAP));
		ret = 0;
		break;
	case DOMAIN_ATTR_PAGE_TABLE_IS_COHERENT:
		if (!smmu_domain->smmu)
			return -ENODEV;
		*((int *)data) = smmu_domain->smmu->dev->archdata.dma_coherent;
		ret = 0;
		break;
	default:
		return -ENODEV;
	}