]> git.baikalelectronics.ru Git - kernel.git/commit
dma-mapping: replace set_arch_dma_coherent_ops with arch_setup_dma_ops
authorWill Deacon <will.deacon@arm.com>
Wed, 27 Aug 2014 14:49:10 +0000 (15:49 +0100)
committerWill Deacon <will.deacon@arm.com>
Mon, 1 Dec 2014 16:50:32 +0000 (16:50 +0000)
commit51df7018065d933deee853f8ba58202316abc15c
treefb9f47c0b0f9065916242bfa76864d5b72825b8f
parent8ad31427a2be3b2bcce4d4a3a41200ae43b2c852
dma-mapping: replace set_arch_dma_coherent_ops with arch_setup_dma_ops

set_arch_dma_coherent_ops is called from of_dma_configure in order to
swizzle the architectural dma-mapping functions over to a cache-coherent
implementation. This is currently implemented only for ARM.

In anticipation of re-using this mechanism for IOMMU-backed dma-mapping
ops too, this patch replaces the function with a broader
arch_setup_dma_ops callback which will be extended in future.

Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Marek Szyprowski <m.szyprowski@samsung.com>
Tested-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm/include/asm/dma-mapping.h
drivers/of/platform.c
include/linux/dma-mapping.h