提交 385e1efa 编写于 作者: M Michal Simek

microblaze: Fix consistent-sync code

PCI_DMA_FROMDEVICE should call invalidation not flushing.
Signed-off-by: NMichal Simek <monstr@monstr.eu>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册