PCI: Move isa_dma_bridge_buggy out of asm/dma.h
authorStafford Horne <shorne@gmail.com>
Fri, 22 Jul 2022 21:49:42 +0000 (06:49 +0900)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 22 Jul 2022 22:24:47 +0000 (17:24 -0500)
commitabb4970ac33514c84b143516583eaf8cc47abd67
tree088c26843690abdfd7cd77a63bde4bdd7906f4dc
parentae85b23c65dbb079c83d8a08ff7699215f104e42
PCI: Move isa_dma_bridge_buggy out of asm/dma.h

The isa_dma_bridge_buggy symbol is only used for x86_32, and only x86_32
platforms or quirks ever set it.

Add a new linux/isa-dma.h header that #defines isa_dma_bridge_buggy to 0
except on x86_32, where we keep it as a variable, and remove all the arch-
specific definitions.

[bhelgaas: commit log]
Suggested-by: Arnd Bergmann <arnd@arndb.de>
Suggested-by: Christoph Hellwig <hch@infradead.org>
Link: https://lore.kernel.org/r/20220722214944.831438-3-shorne@gmail.com
Signed-off-by: Stafford Horne <shorne@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
23 files changed:
arch/alpha/include/asm/dma.h
arch/arc/include/asm/dma.h
arch/arm/include/asm/dma.h
arch/arm64/include/asm/pci.h
arch/csky/include/asm/pci.h
arch/ia64/include/asm/dma.h
arch/m68k/include/asm/dma.h
arch/microblaze/include/asm/dma.h
arch/mips/include/asm/dma.h
arch/parisc/include/asm/dma.h
arch/powerpc/include/asm/dma.h
arch/riscv/include/asm/pci.h
arch/s390/include/asm/dma.h
arch/sh/include/asm/dma.h
arch/sparc/include/asm/dma.h
arch/um/include/asm/pci.h
arch/x86/include/asm/dma.h
arch/xtensa/include/asm/dma.h
drivers/comedi/drivers/comedi_isadma.c
drivers/pci/pci.c
drivers/pci/quirks.c
include/linux/isa-dma.h [new file with mode: 0644]
sound/core/isadma.c