]> 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)
commit5b3f7751386bc352d0e7f581863902819a28c7ff
treed26704de877676cf9bfa28ce016d7d9a74121a10
parent21995bff9ba36dee4834c4af571832d2d5739126
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