diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2007-03-02 06:42:11 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2007-03-04 14:02:42 -0500 |
commit | 5b648a98db05fd0152349a11a7f7e30b80643977 (patch) | |
tree | c58d301712c954b3edc264b5e72884a20f7ee419 /arch | |
parent | 47d7c44b87df91fdb5d9c2678fc90afd46c14fbe (diff) |
[MIPS] dma_sync_sg_for_cpu is a no-op except for non-coherent R10000s.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/mips/mm/dma-default.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/mm/dma-default.c b/arch/mips/mm/dma-default.c index a72093ad105f..f503d02e403b 100644 --- a/arch/mips/mm/dma-default.c +++ b/arch/mips/mm/dma-default.c | |||
@@ -295,7 +295,7 @@ void dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, int nelems, | |||
295 | 295 | ||
296 | /* Make sure that gcc doesn't leave the empty loop body. */ | 296 | /* Make sure that gcc doesn't leave the empty loop body. */ |
297 | for (i = 0; i < nelems; i++, sg++) { | 297 | for (i = 0; i < nelems; i++, sg++) { |
298 | if (!plat_device_is_coherent(dev)) | 298 | if (cpu_is_noncoherent_r10000(dev)) |
299 | __dma_sync((unsigned long)page_address(sg->page), | 299 | __dma_sync((unsigned long)page_address(sg->page), |
300 | sg->length, direction); | 300 | sg->length, direction); |
301 | plat_unmap_dma_mem(sg->dma_address); | 301 | plat_unmap_dma_mem(sg->dma_address); |