]> git.karo-electronics.de Git - linux-beck.git/commit
iommu/dma: Implement dma_{map,unmap}_resource()
authorRobin Murphy <robin.murphy@arm.com>
Mon, 14 Nov 2016 12:16:26 +0000 (12:16 +0000)
committerJoerg Roedel <jroedel@suse.de>
Mon, 14 Nov 2016 15:58:36 +0000 (16:58 +0100)
commit51f8cc9e818a9e6df376db7aeb5822d43e58cfb3
treee894f2534f0f8fc079d82cf410aba8d92d280e9c
parentbc33b0ca11e3df467777a4fa7639ba488c9d4911
iommu/dma: Implement dma_{map,unmap}_resource()

With the new dma_{map,unmap}_resource() functions added to the DMA API
for the benefit of cases like slave DMA, add suitable implementations to
the arsenal of our generic layer. Since cache maintenance should not be
a concern, these can both be standalone callback implementations without
the need for arch code wrappers.

CC: Joerg Roedel <joro@8bytes.org>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/dma-iommu.c
include/linux/dma-iommu.h