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

Commit 36609340 authored by Charan Teja Reddy's avatar Charan Teja Reddy
Browse files

arm: dma-mapping: use proper api to get prot attribute



Use proper API to get the IOMMU protection attributes which are used in
pagetable mappings.

Change-Id: I755fd6ee030ed3d1a3f443ac3624512e0ba66ee4
Fixes: Ibf67f29a60b ("arm: dma-mapping: map sg lists into the SMMU as
virtually contiguous")
Signed-off-by: default avatarCharan Teja Reddy <charante@codeaurora.org>
parent 8ba63000
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1849,7 +1849,7 @@ int arm_iommu_map_sg(struct device *dev, struct scatterlist *sg,
	struct dma_iommu_mapping *mapping = dev->archdata.mapping;
	unsigned int total_length = 0, current_offset = 0;
	dma_addr_t iova;
	int prot = __dma_direction_to_prot(dir);
	int prot = __dma_info_to_prot(dir, attrs);

	for_each_sg(sg, s, nents, i)
		total_length += s->length;