media: venus: put dummy vote on video-mem path after last session release
authorMansur Alisha Shaik <mansur@codeaurora.org>
Mon, 19 Oct 2020 04:18:14 +0000 (06:18 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 17 Nov 2020 05:53:35 +0000 (06:53 +0100)
commiteff5ce02e170125936c43ca96c7dc701a86681ed
tree606628fd41085014e278d665bbc6262c3cb79114
parente44fb034b03231cd117d6db73fb8048deab6ea41
media: venus: put dummy vote on video-mem path after last session release

As per current implementation, video driver is unvoting "videom-mem" path
for last video session during vdec_session_release().
While video playback when we try to suspend device, we see video clock
warnings since votes are already removed during vdec_session_release().

corrected this by putting dummy vote on "video-mem" after last video
session release and unvoting it during suspend.

suspend")

Fixes: 07f8f22a33a9e ("media: venus: core: remove CNOC voting while device
Signed-off-by: Mansur Alisha Shaik <mansur@codeaurora.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/qcom/venus/pm_helpers.c