]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
arm64: Wire up iommu_dma_{map, unmap}_resource()
authorRobin Murphy <robin.murphy@arm.com>
Mon, 14 Nov 2016 12:16:27 +0000 (12:16 +0000)
committerJoerg Roedel <jroedel@suse.de>
Mon, 14 Nov 2016 15:58:36 +0000 (16:58 +0100)
With no coherency to worry about, just plug'em straight in.

Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
arch/arm64/mm/dma-mapping.c

index 3f74d0d98de63322b15b387cb967009db17079ff..5cd0a383b14bae5f49973d794e2e741c47f30889 100644 (file)
@@ -796,6 +796,8 @@ static struct dma_map_ops iommu_dma_ops = {
        .sync_single_for_device = __iommu_sync_single_for_device,
        .sync_sg_for_cpu = __iommu_sync_sg_for_cpu,
        .sync_sg_for_device = __iommu_sync_sg_for_device,
+       .map_resource = iommu_dma_map_resource,
+       .unmap_resource = iommu_dma_unmap_resource,
        .dma_supported = iommu_dma_supported,
        .mapping_error = iommu_dma_mapping_error,
 };