diff options
author | Christoph Hellwig <hch@lst.de> | 2021-10-21 13:01:46 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2021-10-21 13:02:41 +0200 |
commit | 2c38d6a4e959a88213e24214188e056e5b8cf4c6 (patch) | |
tree | 880b16bef9bdabffc2be251b79d452c932357bc9 /arch/sparc | |
parent | 519d81956ee277b4419c723adfb154603c2565ba (diff) | |
download | linux-stable-2c38d6a4e959a88213e24214188e056e5b8cf4c6.tar.gz linux-stable-2c38d6a4e959a88213e24214188e056e5b8cf4c6.tar.bz2 linux-stable-2c38d6a4e959a88213e24214188e056e5b8cf4c6.zip |
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 <hch@lst.de>
Tested-by: Andreas Larsson <andreas@gaisler.com>
Acked-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc')
-rw-r--r-- | arch/sparc/kernel/ioport.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/sparc/kernel/ioport.c b/arch/sparc/kernel/ioport.c index 7ceae24b0ca9..59375a01c152 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)); } |