media: venus: vdec: Use pmruntime autosuspend
authorStanimir Varbanov <stanimir.varbanov@linaro.org>
Thu, 30 Jan 2020 15:44:24 +0000 (16:44 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 14 Apr 2020 10:37:58 +0000 (12:37 +0200)
commit63342afea65e9efa06889775c27001745e157770
treecc80dd2f7017aad9eca4a448ff36b9d171475999
parente1ebe9f9c88e5a78fcc4670a9063c9b3cd87dda4
media: venus: vdec: Use pmruntime autosuspend

Implement pmruntime autosuspend in video decoder. This will
allow to save power while the userspace is inactive for some
reasonable period of time. Here we power-off venus core clocks
and power domain and don't touch vcodec because it is under
hardware control. The later decision is made to simplify the
code and avoid a mess in the power management code.

Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/qcom/venus/core.c
drivers/media/platform/qcom/venus/core.h
drivers/media/platform/qcom/venus/vdec.c