Skip to content

Commit da323d4

Browse files
author
Christoph Hellwig
committed
dma-direct: add dependencies to CONFIG_DMA_GLOBAL_POOL
CONFIG_DMA_GLOBAL_POOL can't be combined with other DMA coherent allocators. Add dependencies to Kconfig to document this, and make kconfig complain about unmet dependencies if someone tries. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Robin Murphy <robin.murphy@arm.com> Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> Reviewed-by: Greg Ungerer <gerg@linux-m68k.org> Tested-by: Greg Ungerer <gerg@linux-m68k.org>
1 parent ce55c22 commit da323d4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

kernel/dma/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,8 @@ config DMA_COHERENT_POOL
135135

136136
config DMA_GLOBAL_POOL
137137
select DMA_DECLARE_COHERENT
138+
depends on !ARCH_HAS_DMA_SET_UNCACHED
139+
depends on !DMA_DIRECT_REMAP
138140
bool
139141

140142
config DMA_DIRECT_REMAP

0 commit comments

Comments
 (0)