dma-mapping: move the dma_coherent flag to struct device
authorChristoph Hellwig <hch@lst.de>
Sun, 19 Aug 2018 12:53:20 +0000 (14:53 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 20 Sep 2018 07:01:15 +0000 (09:01 +0200)
commitf3ecc0ff0457eae93503792c6fc35921fa8a6204
treecbaa1fbb29ea8d5b33fb8d1798e595147cb72729
parent5748e1b35ba28368515d850e8087929a3a65e055
dma-mapping: move the dma_coherent flag to struct device

Various architectures support both coherent and non-coherent dma on a
per-device basis.  Move the dma_noncoherent flag from the mips archdata
field to struct device proper to prepare the infrastructure for reuse on
other architectures.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Paul Burton <paul.burton@mips.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/mips/Kconfig
arch/mips/include/asm/Kbuild
arch/mips/include/asm/device.h [deleted file]
arch/mips/include/asm/dma-coherence.h
arch/mips/include/asm/dma-mapping.h
arch/mips/mm/dma-noncoherent.c
include/linux/device.h
include/linux/dma-noncoherent.h
kernel/dma/Kconfig