media: videobuf2: do not sync caches when we are allowed not to
authorSergey Senozhatsky <senozhatsky@chromium.org>
Thu, 14 May 2020 16:01:47 +0000 (18:01 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 23 Jun 2020 11:34:06 +0000 (13:34 +0200)
commitdcf3bfe7c71d8da57cda2e3e06b8c28ed155741b
tree66277100bba3963f00e3d788b948869466b62cc4
parent38a417e88aad1e5ad5ff2647d4cd26040b567fc3
media: videobuf2: do not sync caches when we are allowed not to

Skip ->prepare() or/and ->finish() cache synchronisation if
user-space requested us to do so (or when queue dma direction
permits us to skip cache syncs).

Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/common/videobuf2/videobuf2-core.c