aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/mm/dma-default.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/mm/dma-default.c')
-rw-r--r--arch/mips/mm/dma-default.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/mips/mm/dma-default.c b/arch/mips/mm/dma-default.c
index af5f046e627e..609d1241b0c4 100644
--- a/arch/mips/mm/dma-default.c
+++ b/arch/mips/mm/dma-default.c
@@ -258,7 +258,7 @@ static void mips_dma_unmap_page(struct device *dev, dma_addr_t dma_addr,
258 if (cpu_needs_post_dma_flush(dev)) 258 if (cpu_needs_post_dma_flush(dev))
259 __dma_sync(dma_addr_to_page(dev, dma_addr), 259 __dma_sync(dma_addr_to_page(dev, dma_addr),
260 dma_addr & ~PAGE_MASK, size, direction); 260 dma_addr & ~PAGE_MASK, size, direction);
261 261 plat_post_dma_flush(dev);
262 plat_unmap_dma_mem(dev, dma_addr, size, direction); 262 plat_unmap_dma_mem(dev, dma_addr, size, direction);
263} 263}
264 264
@@ -312,6 +312,7 @@ static void mips_dma_sync_single_for_cpu(struct device *dev,
312 if (cpu_needs_post_dma_flush(dev)) 312 if (cpu_needs_post_dma_flush(dev))
313 __dma_sync(dma_addr_to_page(dev, dma_handle), 313 __dma_sync(dma_addr_to_page(dev, dma_handle),
314 dma_handle & ~PAGE_MASK, size, direction); 314 dma_handle & ~PAGE_MASK, size, direction);
315 plat_post_dma_flush(dev);
315} 316}
316 317
317static void mips_dma_sync_single_for_device(struct device *dev, 318static void mips_dma_sync_single_for_device(struct device *dev,
@@ -331,6 +332,7 @@ static void mips_dma_sync_sg_for_cpu(struct device *dev,
331 for (i = 0; i < nelems; i++, sg++) 332 for (i = 0; i < nelems; i++, sg++)
332 __dma_sync(sg_page(sg), sg->offset, sg->length, 333 __dma_sync(sg_page(sg), sg->offset, sg->length,
333 direction); 334 direction);
335 plat_post_dma_flush(dev);
334} 336}
335 337
336static void mips_dma_sync_sg_for_device(struct device *dev, 338static void mips_dma_sync_sg_for_device(struct device *dev,