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

microblaze: Fix consistent-sync code

PCI_DMA_FROMDEVICE should call invalidation not flushing.
Signed-off-by: Michal Simek's avatarMichal Simek <>
parent 598acab4
......@@ -229,7 +229,7 @@ void consistent_sync(void *vaddr, size_t size, int direction)
case PCI_DMA_FROMDEVICE: /* invalidate only */
flush_dcache_range(start, end);
invalidate_dcache_range(start, end);
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