diff options
author | Christoph Hellwig <hch@lst.de> | 2019-03-25 15:44:06 +0100 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2019-05-06 15:04:40 +0200 |
commit | 13bf5ced93775ffccb53527a9d862e023a9daa03 (patch) | |
tree | 8841a56889a7b6468e7c81215428376358345211 /kernel | |
parent | 148a97d5a02a62f81b5d6176f871c94a65e1f3af (diff) | |
download | linux-13bf5ced93775ffccb53527a9d862e023a9daa03.tar.gz linux-13bf5ced93775ffccb53527a9d862e023a9daa03.tar.bz2 linux-13bf5ced93775ffccb53527a9d862e023a9daa03.zip |
dma-mapping: add a Kconfig symbol to indicate arch_dma_prep_coherent presence
Add a Kconfig symbol that indicates an architecture provides a
arch_dma_prep_coherent implementation, and provide a stub otherwise.
This will allow the generic dma-iommu code to use it while still
allowing to be built for cache coherent architectures.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/dma/Kconfig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/dma/Kconfig b/kernel/dma/Kconfig index 52b704e2b97a..83d711f8d665 100644 --- a/kernel/dma/Kconfig +++ b/kernel/dma/Kconfig @@ -38,6 +38,9 @@ config ARCH_HAS_SYNC_DMA_FOR_CPU config ARCH_HAS_SYNC_DMA_FOR_CPU_ALL bool +config ARCH_HAS_DMA_PREP_COHERENT + bool + config ARCH_HAS_DMA_COHERENT_TO_PFN bool |