mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
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>
This commit is contained in:
committed by
Thomas Bogendoerfer
parent
14ac09a65e
commit
6d4e9a8efe
@@ -33,9 +33,6 @@ config NEED_DMA_MAP_STATE
|
||||
config ARCH_DMA_ADDR_T_64BIT
|
||||
def_bool 64BIT || PHYS_ADDR_T_64BIT
|
||||
|
||||
config ARCH_HAS_DMA_COHERENCE_H
|
||||
bool
|
||||
|
||||
config ARCH_HAS_DMA_SET_MASK
|
||||
bool
|
||||
|
||||
|
||||
Reference in New Issue
Block a user