]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/dma: Use for_each_sg in iommu_dma_alloc
authorChristoph Hellwig <hch@lst.de>
Mon, 20 May 2019 07:29:28 +0000 (09:29 +0200)
committerJoerg Roedel <jroedel@suse.de>
Mon, 27 May 2019 15:31:10 +0000 (17:31 +0200)
commita6d568b052cb19b3fd72abc6604825b8f05c965b
treed26704de877676cf9bfa28ce016d7d9a74121a10
parent2d1c87e7bc5ce60776ac3483a1fc6f809ab50619
iommu/dma: Use for_each_sg in iommu_dma_alloc

arch_dma_prep_coherent can handle physically contiguous ranges larger
than PAGE_SIZE just fine, which means we don't need a page-based
iterator.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/dma-iommu.c