dma-direct: provide a arch_dma_clear_uncached hook
authorChristoph Hellwig <hch@lst.de>
Fri, 21 Feb 2020 20:35:05 +0000 (12:35 -0800)
committerChristoph Hellwig <hch@lst.de>
Mon, 16 Mar 2020 09:48:12 +0000 (10:48 +0100)
commit999a5d1203baa7cff00586361feae263ee3f23a5
treeb04c578a71b961394e7fe87567684bf0caefbe8b
parentfa7e2247c5729f990c7456fe09f3af99c8f2571b
dma-direct: provide a arch_dma_clear_uncached hook

This allows the arch code to reset the page tables to cached access when
freeing a dma coherent allocation that was set to uncached using
arch_dma_set_uncached.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
arch/Kconfig
include/linux/dma-noncoherent.h
kernel/dma/direct.c