]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: dma-mapping: Set proper DMA ops in arm_iommu_detach_device()
authorThierry Reding <treding@nvidia.com>
Wed, 30 May 2018 14:06:24 +0000 (16:06 +0200)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 16 Jul 2018 08:06:36 +0000 (18:06 +1000)
commit537eff1036cc12f8a84f5e894392c9b737f862c1
tree78e4a081d1b571159f0bf7fe3d66e1cd281bb4fd
parent79fa01e5f7c206ef7c6f44a82e786d9f4571abe5
ARM: dma-mapping: Set proper DMA ops in arm_iommu_detach_device()

Instead of setting the DMA ops pointer to NULL, set the correct,
non-IOMMU ops depending on the device's coherency setting.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Acked-by: Russell King <rmk+kernel@armlinux.org.uk>
Acked-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
arch/arm/mm/dma-mapping.c