[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)
commita136f59c0a1f1b09eb203951975e3fc5e8d3e722
tree83df54b5eccbc9dee1be0e890a37b8db17e11da6
parent6aca5b8fb86681954e6715494e74106db505701c
[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