Commit 385e1efa authored by Michal Simek's avatar Michal Simek

microblaze: Fix consistent-sync code

PCI_DMA_FROMDEVICE should call invalidation not flushing.
Signed-off-by: default avatarMichal Simek <monstr@monstr.eu>
parent 598acab4
......@@ -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);
......
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