Skip to content

Commit 9eb09dc

Browse files
Stanimir Varbanovmchehab
authored andcommitted
media: venus: core: Fix platform driver shutdown
With TZ system reboot cannot finish successfully. To fix that enable core clocks by runtime pm before TZ calls and disable clocks after that. Tested-by: Shawn Guo <shawn.guo@linaro.org> Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
1 parent 06b8315 commit 9eb09dc

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • drivers/media/platform/qcom/venus

drivers/media/platform/qcom/venus/core.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,8 +349,10 @@ static void venus_core_shutdown(struct platform_device *pdev)
349349
{
350350
struct venus_core *core = platform_get_drvdata(pdev);
351351

352+
pm_runtime_get_sync(core->dev);
352353
venus_shutdown(core);
353354
venus_firmware_deinit(core);
355+
pm_runtime_put_sync(core->dev);
354356
}
355357

356358
static __maybe_unused int venus_runtime_suspend(struct device *dev)

0 commit comments

Comments
 (0)