media: mtk-vpu: VPU should be in idle state before system is suspended
authorIrui Wang <irui.wang@mediatek.com>
Thu, 29 Oct 2020 01:17:20 +0000 (02:17 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 3 Dec 2020 06:42:09 +0000 (07:42 +0100)
commit1f565e263c3e95ccd79fececc51ae7d55ccbddb6
tree6525ef83145c4ff3d4254ae8a16f4fce9ddd2d34
parent41a340941854c4606a9b71b9d68db412747e7c84
media: mtk-vpu: VPU should be in idle state before system is suspended

VPU should be in idle state before system is suspended
or it will work abnormally like VPU program counter not
in a correct address or VPU reset

Signed-off-by: Irui Wang <irui.wang@mediatek.com>
Reviewed-by: Alexandre Courbot <acourbot@chromium.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/mtk-vpu/mtk_vpu.c