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>
Showing
- arch/sparc/include/asm/dma-mapping.h 2 additions, 13 deletionsarch/sparc/include/asm/dma-mapping.h
- arch/sparc/kernel/ioport.c 0 additions, 3 deletionsarch/sparc/kernel/ioport.c
- arch/sparc/kernel/of_device_common.c 1 addition, 0 deletionsarch/sparc/kernel/of_device_common.c
- arch/sparc/mm/io-unit.c 4 additions, 5 deletionsarch/sparc/mm/io-unit.c
- arch/sparc/mm/iommu.c 8 additions, 7 deletionsarch/sparc/mm/iommu.c
- arch/sparc/mm/mm_32.h 0 additions, 3 deletionsarch/sparc/mm/mm_32.h
- arch/sparc/mm/srmmu.c 1 addition, 3 deletionsarch/sparc/mm/srmmu.c
Please register or sign in to comment