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

Commit 8c5ca64d authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

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

parents c9248410 36609340
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line 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;
	struct dma_iommu_mapping *mapping = dev->archdata.mapping;
	unsigned int total_length = 0, current_offset = 0;
	unsigned int total_length = 0, current_offset = 0;
	dma_addr_t iova;
	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)
	for_each_sg(sg, s, nents, i)
		total_length += s->length;
		total_length += s->length;