]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: default to the direct mapping in get_arch_dma_ops
authorChristoph Hellwig <hch@lst.de>
Fri, 14 Dec 2018 14:18:08 +0000 (15:18 +0100)
committerChristoph Hellwig <hch@lst.de>
Wed, 19 Dec 2018 17:00:12 +0000 (18:00 +0100)
commit21b5cf01421d92f1cd5b547567b0149e251a351e
tree63c42d95b087c7860123380ddfc56ccdece9cf75
parent85724ea0d3b9acf085a26e228a0265a1c7fa601d
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: 44964de5a6 ("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>
arch/arm64/include/asm/dma-mapping.h