Skip to content

Commit

Permalink
media: venus: firmware: Do not toggle WRAPPER_A9SS_SW_RESET on 6xx
Browse files Browse the repository at this point in the history
Do not toggle the WRAPPER_A9SS_SW_RESET on 6xx.

Signed-off-by: Dikshita Agarwal <dikshita@codeaurora.org>
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
  • Loading branch information
Dikshita Agarwal authored and Mauro Carvalho Chehab committed Apr 6, 2021
1 parent 64afe82 commit ec7ad11
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions drivers/media/platform/qcom/venus/firmware.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit ec7ad11

Please sign in to comment.