]> git.baikalelectronics.ru Git - kernel.git/commit
sparc32: use per-device dma_ops
authorChristoph Hellwig <hch@lst.de>
Mon, 23 Mar 2020 08:43:42 +0000 (09:43 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Apr 2020 01:11:55 +0000 (18:11 -0700)
commit65edac60cdf62aa75b0e39e3075784c498f45cbf
treeba40d43db66dcc086bb1b7ad634589b01f8a0569
parent4c88f0662c49caa6111d49b188485b4e9370292e
sparc32: use per-device dma_ops

sparc32 is the last platform making dynamic decisions in
get_arch_dma_ops based on the bus passed in.  Instead set the
iommu dma_ops at iommu probing and propagate them in
of_propagate_archdata, falling back to the NULL ops for the
direct mapping in the Leon or PCI case.

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