dmaengine: axi-dmac: check cache coherency register
authorMathias Tausen <mta@satlab.com>
Tue, 26 Jul 2022 14:02:12 +0000 (16:02 +0200)
committerVinod Koul <vkoul@kernel.org>
Tue, 26 Jul 2022 16:35:20 +0000 (22:05 +0530)
commit9327c7e7539371c6f202303d5539afbae006ec72
tree431f1fbeffc3554b998c0f743da39ba8a3adaea2
parent7d3a3aaaa9cc8ec53e9ef4f3e1711827107f76c5
dmaengine: axi-dmac: check cache coherency register

Marking the DMA as cache coherent (dma-coherent in devicetree) is only
safe with versions of axi_dmac that have this feature enabled.

Cc: Lars-Peter Clausen <lars@metafoo.de>
Cc: Vinod Koul <vkoul@kernel.org>
Acked-by: Nuno Sá <nuno.sa@analog.com>
Signed-off-by: Mathias Tausen <mta@satlab.com>
Link: https://lore.kernel.org/r/20220726140213.786939-1-mta@satlab.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/dma-axi-dmac.c