]> git.baikalelectronics.ru Git - kernel.git/commit
media: venus: Fix occasionally failures to suspend
authorStanimir Varbanov <stanimir.varbanov@linaro.org>
Tue, 17 Sep 2019 12:02:26 +0000 (09:02 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 4 Oct 2019 11:51:29 +0000 (08:51 -0300)
commit57a5545262137e7b28dbb1ef7bc1df03e0c2f172
tree3262d06f77b1eb3746ed56ee55d8851301c91989
parent940b8f90b031e0b30876a5725cc0cb662c2e7986
media: venus: Fix occasionally failures to suspend

Failure to suspend (venus_suspend_3xx) happens when the system
is fresh booted and loading venus driver. This happens once and
after reload the venus driver modules the problem disrepair.

Fix the failure by skipping the check for WFI and IDLE bits if
PC_READY is on in control status register.

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