From: Christoph Hellwig Date: Thu, 21 Oct 2021 11:01:46 +0000 (+0200) Subject: sparc32: remove the call to dma_make_coherent in arch_dma_free X-Git-Tag: v5.16-rc1~78^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2c38d6a4e959a88213e24214188e056e5b8cf4c6;p=thirdparty%2Flinux.git sparc32: remove the call to dma_make_coherent in arch_dma_free 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 Tested-by: Andreas Larsson Acked-by: David S. Miller --- diff --git a/arch/sparc/kernel/ioport.c b/arch/sparc/kernel/ioport.c index 7ceae24b0ca99..59375a01c1523 100644 --- a/arch/sparc/kernel/ioport.c +++ b/arch/sparc/kernel/ioport.c @@ -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)); }