media: platform: Improve the implementation of the system PM ops
authorXia Jiang <xia.jiang@mediatek.com>
Fri, 14 Aug 2020 07:11:41 +0000 (09:11 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Fri, 28 Aug 2020 13:21:05 +0000 (15:21 +0200)
commitf9f964519c54543476adcb792414ed7ef91963eb
treef355895e999bcd74789b50102f131efa76fdaff2
parent911ea8ec42dea0e28083a6e92b1b4a5a0ad5acca
media: platform: Improve the implementation of the system PM ops

Add v4l2_m2m_suspend() function call in mtk_jpeg_suspend() to make sure
that the current frame is processed completely before suspend.
Add v4l2_m2m_resume() function call in mtk_jpeg_resume() to unblock the
driver from scheduling next frame.

Reviewed-by: Tomasz Figa <tfiga@chromium.org>
Signed-off-by: Xia Jiang <xia.jiang@mediatek.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c