]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commit255a69a94b8cbbcfef142137b5e7f99b5d168771
treeba40d43db66dcc086bb1b7ad634589b01f8a0569
parentbef7b2a7be28638770972ab2709adf11d601c11a
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