浏览代码

[MIPS] Use correct dma flushing in dma_cache_sync()

Not cache coherent R10k systems (like IP28) need to do real cache
invalidates in dma_cache_sync().

Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Thomas Bogendoerfer 17 年之前
父节点
当前提交
c7c6b39050
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      arch/mips/mm/dma-default.c

+ 1 - 1
arch/mips/mm/dma-default.c

@@ -383,7 +383,7 @@ void dma_cache_sync(struct device *dev, void *vaddr, size_t size,
 	BUG_ON(direction == DMA_NONE);
 	BUG_ON(direction == DMA_NONE);
 
 
 	if (!plat_device_is_coherent(dev))
 	if (!plat_device_is_coherent(dev))
-		dma_cache_wback_inv((unsigned long)vaddr, size);
+		__dma_sync((unsigned long)vaddr, size, direction);
 }
 }
 
 
 EXPORT_SYMBOL(dma_cache_sync);
 EXPORT_SYMBOL(dma_cache_sync);