]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
sparc: remove arch specific dma_supported implementations
authorChristoph Hellwig <hch@lst.de>
Mon, 22 May 2017 07:11:30 +0000 (09:11 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 28 Jun 2017 13:54:39 +0000 (06:54 -0700)
commitb02c2b0bfd7ae4fb5bc8685ac564861b99c7a552
treeca859e125d4c9b90c983c193d82e915cdb919538
parentc6d333e0847260972cb6279de76d8004d2461d3f
sparc: remove arch specific dma_supported implementations

Usually dma_supported decisions are done by the dma_map_ops instance.
Switch sparc to that model by providing a ->dma_supported instance for
sbus that always returns false, and implementations tailored to the sun4u
and sun4v cases for sparc64, and leave it unimplemented for PCI on
sparc32, which means always supported.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: David S. Miller <davem@davemloft.net>
arch/sparc/include/asm/dma-mapping.h
arch/sparc/kernel/iommu.c
arch/sparc/kernel/ioport.c
arch/sparc/kernel/pci_sun4v.c