summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorRitesh Harjani <ritesh.harjani@gmail.com>2014-04-23 06:29:46 +0100
committerCatalin Marinas <catalin.marinas@arm.com>2014-05-03 22:20:33 +0100
commitc7a4a7658d689f664050c45493d79adf053f226e (patch)
treebda3847db4db4a820c28e7a0472db0570d965250 /arch
parentf774b7d10e2155e52b92dfce2f8cb099a6d6d0e6 (diff)
downloadlinux-c7a4a7658d689f664050c45493d79adf053f226e.tar.bz2
arm64: Make default dma_ops to be noncoherent
Currently arm64 dma_ops is by default made coherent which makes it opposite in default policy from arm. Make default dma_ops to be noncoherent (same as arm), as currently there aren't any dma-capable drivers which assumes coherent ops Signed-off-by: Ritesh Harjani <ritesh.harjani@gmail.com> Acked-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm64/mm/dma-mapping.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/mm/dma-mapping.c b/arch/arm64/mm/dma-mapping.c
index 0ba347e59f06..1f65963a9c04 100644
--- a/arch/arm64/mm/dma-mapping.c
+++ b/arch/arm64/mm/dma-mapping.c
@@ -311,7 +311,7 @@ static int __init swiotlb_late_init(void)
{
size_t swiotlb_size = min(SZ_64M, MAX_ORDER_NR_PAGES << PAGE_SHIFT);
- dma_ops = &coherent_swiotlb_dma_ops;
+ dma_ops = &noncoherent_swiotlb_dma_ops;
return swiotlb_late_init_with_default_size(swiotlb_size);
}