]> git.baikalelectronics.ru Git - kernel.git/commit
driver core: lift dma_default_coherent into common code
authorChristoph Hellwig <hch@lst.de>
Wed, 10 Feb 2021 09:56:39 +0000 (10:56 +0100)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Sat, 13 Feb 2021 08:51:45 +0000 (09:51 +0100)
commitcd28de22a98dac4bfbfed6e422d74b0469e73e12
tree7e236f45053e397f6810c2494dda6c251b19a5bc
parent1d987af326f5b2252e89f42bcadc998141f3d611
driver core: lift dma_default_coherent into common code

Lift the dma_default_coherent variable from the mips architecture code
to the driver core.  This allows an architecture to sdefault all device
to be DMA coherent at run time, even if the kernel is build with support
for DMA noncoherent device.  By allowing device_initialize to set the
->dma_coherent field to this default the amount of arch hooks required
for this behavior can be greatly reduced.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
13 files changed:
arch/mips/Kconfig
arch/mips/alchemy/common/setup.c
arch/mips/include/asm/dma-coherence.h [deleted file]
arch/mips/kernel/setup.c
arch/mips/mm/c-r4k.c
arch/mips/mm/dma-noncoherent.c
arch/mips/mti-malta/malta-setup.c
arch/mips/pci/pci-alchemy.c
arch/mips/pistachio/init.c
drivers/base/core.c
include/linux/dma-map-ops.h
kernel/dma/Kconfig
kernel/dma/mapping.c