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)
commit8dbebb2bd01e6f36e9a215dcde99ace70408f2c8
tree3262d06f77b1eb3746ed56ee55d8851301c91989
parent32f0a6ddc8c98a1aade2bf3d07c79d5d2c6ceb9a
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