m2m1shot now provides m2m1shot_sync_for_device/cpu() functions that
explicitly cleaning or invalidating CPU caches. This patch follows
"media: m2m1shot: use exynos_iovmm_map_userptr()" which separate
cache maintenance from m2m1shot_map/unmap_dma_buf().
Change-Id: I8eac9cf955fff3f07aa00a6ea86f401245e21be3
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
return ret;
}
+ m2m1shot_sync_for_device(m21ctx->m21dev->dev,
+ &buf_dma->plane[plane], dir);
+
return 0;
}
int plane,
enum dma_data_direction dir)
{
+ m2m1shot_sync_for_cpu(m21ctx->m21dev->dev,
+ &buf_dma->plane[plane], dir);
m2m1shot_dma_addr_unmap(m21ctx->m21dev->dev, buf_dma, plane);
m2m1shot_unmap_dma_buf(m21ctx->m21dev->dev,
&buf_dma->plane[plane], dir);