Skip to content

Commit 70d6aa0

Browse files
author
Christoph Hellwig
committed
dma-mapping: allow using the global coherent pool for !ARM
Switch an ifdef so that the global coherent pool is initialized for any architecture that selects the DMA_GLOBAL_POOL symbol insted of hardcoding ARM. Signed-off-by: Christoph Hellwig <[email protected]> Tested-by: Dillon Min <[email protected]>
1 parent 31b089b commit 70d6aa0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

kernel/dma/coherent.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,9 @@ static int __init rmem_dma_setup(struct reserved_mem *rmem)
361361
pr_err("Reserved memory: regions without no-map are not yet supported\n");
362362
return -EINVAL;
363363
}
364+
#endif
364365

366+
#ifdef CONFIG_DMA_GLOBAL_POOL
365367
if (of_get_flat_dt_prop(node, "linux,dma-default", NULL)) {
366368
WARN(dma_reserved_default_memory,
367369
"Reserved memory: region for default DMA coherent area is redefined\n");

0 commit comments

Comments
 (0)