projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
930bff8
)
[MIPS] Use correct dma flushing in dma_cache_sync()
author
Thomas Bogendoerfer
<tsbogend@alpha.franken.de>
Tue, 27 Nov 2007 18:31:33 +0000
(19:31 +0100)
committer
Ralf Baechle
<ralf@linux-mips.org>
Tue, 29 Jan 2008 10:14:58 +0000
(10:14 +0000)
Not cache coherent R10k systems (like IP28) need to do real cache
invalidates in dma_cache_sync().
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/mm/dma-default.c
patch
|
blob
|
history
diff --git
a/arch/mips/mm/dma-default.c
b/arch/mips/mm/dma-default.c
index 810535dd091be1f1aaff24c6403f0686b8b01d63..ae39dd88b9aa0eb97cb63b4c56bbe41c1811ad94 100644
(file)
--- a/
arch/mips/mm/dma-default.c
+++ b/
arch/mips/mm/dma-default.c
@@
-383,7
+383,7
@@
void dma_cache_sync(struct device *dev, void *vaddr, size_t size,
BUG_ON(direction == DMA_NONE);
if (!plat_device_is_coherent(dev))
-
dma_cache_wback_inv((unsigned long)vaddr, size
);
+
__dma_sync((unsigned long)vaddr, size, direction
);
}
EXPORT_SYMBOL(dma_cache_sync);