Merge tag 'dma-mapping-5.1' of git://git.infradead.org/users/hch/dma-mapping
[sfrench/cifs-2.6.git] / arch / mips / mm / dma-noncoherent.c
index b57465733e873057e0879f07a23ee33e161e6e3c..f9549d2fbea3169e216381397df3e203b5aca325 100644 (file)
@@ -156,3 +156,11 @@ void arch_dma_cache_sync(struct device *dev, void *vaddr, size_t size,
 
        dma_sync_virt(vaddr, size, direction);
 }
+
+#ifdef CONFIG_DMA_PERDEV_COHERENT
+void arch_setup_dma_ops(struct device *dev, u64 dma_base, u64 size,
+               const struct iommu_ops *iommu, bool coherent)
+{
+       dev->dma_coherent = coherent;
+}
+#endif