Commit 2c38d6a4 authored by Christoph Hellwig's avatar Christoph Hellwig

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: default avatarChristoph Hellwig <hch@lst.de>
Tested-by: default avatarAndreas Larsson <andreas@gaisler.com>
Acked-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 519d8195
......@@ -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));
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment