Skip to content

Commit

Permalink
microblaze: Fix consistent-sync code
Browse files Browse the repository at this point in the history
PCI_DMA_FROMDEVICE should call invalidation not flushing.

Signed-off-by: Michal Simek <monstr@monstr.eu>
  • Loading branch information
Michal Simek committed May 6, 2010
1 parent 598acab commit 385e1ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/microblaze/mm/consistent.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 385e1ef

Please sign in to comment.