Skip to content

Commit 2c38d6a

Browse files
author
Christoph Hellwig
committed
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 <[email protected]> Tested-by: Andreas Larsson <[email protected]> Acked-by: David S. Miller <[email protected]>
1 parent 519d819 commit 2c38d6a

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

arch/sparc/kernel/ioport.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,6 @@ void arch_dma_free(struct device *dev, size_t size, void *cpu_addr,
361361
if (!sparc_dma_free_resource(cpu_addr, size))
362362
return;
363363

364-
dma_make_coherent(dma_addr, size);
365364
srmmu_unmapiorange((unsigned long)cpu_addr, size);
366365
free_pages((unsigned long)phys_to_virt(dma_addr), get_order(size));
367366
}

0 commit comments

Comments
 (0)