x86/pci-dma: switch the VIA 32-bit DMA quirk to use the struct device flag
authorChristoph Hellwig <hch@lst.de>
Mon, 28 May 2018 10:47:57 +0000 (12:47 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 28 May 2018 10:48:25 +0000 (12:48 +0200)
commit0ead51c3fbd15a4bc91e984f1b18b5c9422fbb02
treead7bf76bbc559ce3fa320ae03ce562e286d2ddc4
parent098afd981744061d37eb4d40bc3f755438570afb
x86/pci-dma: switch the VIA 32-bit DMA quirk to use the struct device flag

Instead of globally disabling > 32bit DMA using the arch_dma_supported
hook walk the PCI bus under the actually affected bridge and mark every
device with the dma_32bit_limit flag.  This also gets rid of the
arch_dma_supported hook entirely.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/include/asm/dma-mapping.h
arch/x86/kernel/pci-dma.c
include/linux/dma-mapping.h