]> git.baikalelectronics.ru Git - kernel.git/commit
[media] vb2: Move buffer cache synchronisation to prepare from queue
authorSakari Ailus <sakari.ailus@linux.intel.com>
Wed, 31 May 2017 14:17:26 +0000 (11:17 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Thu, 8 Jun 2017 17:52:02 +0000 (14:52 -0300)
commiteb06e2db71712adca04541496b0c6dd70208a505
tree83df54b5eccbc9dee1be0e890a37b8db17e11da6
parent5a10dcccccc1424dcbce987d0666151f09bb7677
[media] vb2: Move buffer cache synchronisation to prepare from queue

The buffer cache should be synchronised in buffer preparation, not when
the buffer is queued to the device. Fix this.

Mmap buffers do not need cache synchronisation since they are always
coherent.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/v4l2-core/videobuf2-core.c