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

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

Merge "arm64: dma-mapping: Fix cache maintenance issue"

parents 3a47a0b3 4940f9a4
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -979,12 +979,17 @@ static int __iommu_map_sg_attrs(struct device *dev, struct scatterlist *sgl,
				unsigned long attrs)
{
	bool coherent = is_dma_coherent(dev, attrs);
	int ret;

	ret =  iommu_dma_map_sg(dev, sgl, nelems,
				dma_info_to_prot(dir, coherent, attrs));
	if (!ret)
		return ret;

	if ((attrs & DMA_ATTR_SKIP_CPU_SYNC) == 0)
		__iommu_sync_sg_for_device(dev, sgl, nelems, dir);

	return iommu_dma_map_sg(dev, sgl, nelems,
				dma_info_to_prot(dir, coherent, attrs));
	return ret;
}

static void __iommu_unmap_sg_attrs(struct device *dev,