diff options
author | Christoph Hellwig <hch@lst.de> | 2018-12-14 09:18:08 -0500 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2018-12-19 12:00:12 -0500 |
commit | 9ab91e7c5c514b675470d9b57393cbe455722060 (patch) | |
tree | 63c42d95b087c7860123380ddfc56ccdece9cf75 | |
parent | 664204410afb3b0f538d176ad0c2713b04abd4b9 (diff) |
arm64: default to the direct mapping in get_arch_dma_ops
Otherwise the direct mapping won't work at all given that a NULL
dev->dma_ops causes a fallback. Note that we already explicitly set
dev->dma_ops to dma_dummy_ops for dma-incapable devices, so this
fallback should not be needed anyway.
Fixes: 356da6d0cd ("dma-mapping: bypass indirect calls for dma-direct")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reported-by: Marek Szyprowski <m.szyprowski@samsung.com>
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
-rw-r--r-- | arch/arm64/include/asm/dma-mapping.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/arm64/include/asm/dma-mapping.h b/arch/arm64/include/asm/dma-mapping.h index 273e778f7de2..95dbf3ef735a 100644 --- a/arch/arm64/include/asm/dma-mapping.h +++ b/arch/arm64/include/asm/dma-mapping.h | |||
@@ -26,11 +26,7 @@ | |||
26 | 26 | ||
27 | static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus) | 27 | static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus) |
28 | { | 28 | { |
29 | /* | 29 | return NULL; |
30 | * We expect no ISA devices, and all other DMA masters are expected to | ||
31 | * have someone call arch_setup_dma_ops at device creation time. | ||
32 | */ | ||
33 | return &dma_dummy_ops; | ||
34 | } | 30 | } |
35 | 31 | ||
36 | void arch_setup_dma_ops(struct device *dev, u64 dma_base, u64 size, | 32 | void arch_setup_dma_ops(struct device *dev, u64 dma_base, u64 size, |