From: Dikshita Agarwal Date: Fri, 2 Apr 2021 10:06:43 +0000 (+0200) Subject: media: venus: firmware: Do not toggle WRAPPER_A9SS_SW_RESET on 6xx X-Git-Tag: v5.13-rc1~124^2~82 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ec7ad11740b3b5798c0bd11169170d9572c2e1a2;p=thirdparty%2Fkernel%2Flinux.git media: venus: firmware: Do not toggle WRAPPER_A9SS_SW_RESET on 6xx Do not toggle the WRAPPER_A9SS_SW_RESET on 6xx. Signed-off-by: Dikshita Agarwal Signed-off-by: Bryan O'Donoghue Signed-off-by: Stanimir Varbanov Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/qcom/venus/firmware.c b/drivers/media/platform/qcom/venus/firmware.c index 8c2c68114bbd0..227bd3b3f84c1 100644 --- a/drivers/media/platform/qcom/venus/firmware.c +++ b/drivers/media/platform/qcom/venus/firmware.c @@ -53,10 +53,12 @@ int venus_set_hw_state(struct venus_core *core, bool resume) return ret; } - if (resume) + if (resume) { venus_reset_cpu(core); - else - writel(1, core->wrapper_base + WRAPPER_A9SS_SW_RESET); + } else { + if (!IS_V6(core)) + writel(1, core->wrapper_base + WRAPPER_A9SS_SW_RESET); + } return 0; }