]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
sparc32: remove the call to dma_make_coherent in arch_dma_free
authorChristoph Hellwig <hch@lst.de>
Thu, 21 Oct 2021 11:01:46 +0000 (13:01 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 21 Oct 2021 11:02:41 +0000 (13:02 +0200)
LEON only needs snooping when DMA accesses are not seen on the processor
bus.  Given that coherent allocations are mapped uncached this can't
happen for those allocations.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Tested-by: Andreas Larsson <andreas@gaisler.com>
Acked-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/ioport.c

index 7ceae24b0ca991992b346140c49e92bb3009f762..59375a01c1523f6abd539d9a7c04f9ce9532d9ef 100644 (file)
@@ -361,7 +361,6 @@ void arch_dma_free(struct device *dev, size_t size, void *cpu_addr,
        if (!sparc_dma_free_resource(cpu_addr, size))
                return;
 
-       dma_make_coherent(dma_addr, size);
        srmmu_unmapiorange((unsigned long)cpu_addr, size);
        free_pages((unsigned long)phys_to_virt(dma_addr), get_order(size));
 }