projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
598acab
)
microblaze: Fix consistent-sync code
author
Michal Simek
<monstr@monstr.eu>
Thu, 29 Apr 2010 11:02:17 +0000
(13:02 +0200)
committer
Michal Simek
<monstr@monstr.eu>
Thu, 6 May 2010 09:22:00 +0000
(11:22 +0200)
PCI_DMA_FROMDEVICE should call invalidation not flushing.
Signed-off-by: Michal Simek <monstr@monstr.eu>
arch/microblaze/mm/consistent.c
patch
|
blob
|
history
diff --git
a/arch/microblaze/mm/consistent.c
b/arch/microblaze/mm/consistent.c
index
713431c
..
5a59dad
100644
(file)
--- a/
arch/microblaze/mm/consistent.c
+++ b/
arch/microblaze/mm/consistent.c
@@
-229,7
+229,7
@@
void consistent_sync(void *vaddr, size_t size, int direction)
case PCI_DMA_NONE:
BUG();
case PCI_DMA_FROMDEVICE: /* invalidate only */
-
flush
_dcache_range(start, end);
+
invalidate
_dcache_range(start, end);
break;
case PCI_DMA_TODEVICE: /* writeback only */
flush_dcache_range(start, end);