media: v4l2-mem2mem: add v4l2_m2m_suspend, v4l2_m2m_resume
authorPi-Hsun Shih <pihsun@chromium.org>
Fri, 14 Aug 2020 07:11:40 +0000 (09:11 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Fri, 28 Aug 2020 13:20:40 +0000 (15:20 +0200)
commit911ea8ec42dea0e28083a6e92b1b4a5a0ad5acca
treed69e2ff7234e3dc42c28edac856dbe9ef89880fe
parent1847f68e39d6d562f339b500f0beb3217282490a
media: v4l2-mem2mem: add v4l2_m2m_suspend, v4l2_m2m_resume

Add two functions that can be used to stop new jobs from being queued /
continue running queued job. This can be used while a driver using m2m
helper is going to suspend / wake up from resume, and can ensure that
there's no job running in suspend process.

Signed-off-by: Pi-Hsun Shih <pihsun@chromium.org>
Signed-off-by: Jerry-ch Chen <jerry-ch.chen@mediatek.corp-partner.google.com>
Reviewed-by: Tomasz Figa <tfiga@chromium.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/v4l2-core/v4l2-mem2mem.c
include/media/v4l2-mem2mem.h