From: Hans Verkuil Date: Tue, 18 Nov 2014 12:51:08 +0000 (-0300) Subject: [media] vb2: use dma_map_sg_attrs to prevent unnecessary sync X-Git-Tag: omap-for-v3.19/fixes-rc1~133^2~84 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=251a79f8f5adfd816de4e052b5e3619a5a1d0910;p=pandora-kernel.git [media] vb2: use dma_map_sg_attrs to prevent unnecessary sync By default dma_map_sg syncs the mapped buffer to the device. But buf_prepare expects a buffer syncs for the cpu and the buffer will be synced to the device in the prepare memop. The reverse is true for dma_unmap_sg, buf_finish and the finish memop. To prevent unnecessary syncs we ask dma_(un)map_sg to skip the sync. Signed-off-by: Hans Verkuil Acked-by: Pawel Osciak Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed