]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
media: venus: core: Fix platform driver shutdown
authorStanimir Varbanov <stanimir.varbanov@linaro.org>
Tue, 15 Dec 2020 14:07:44 +0000 (15:07 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 11 Jan 2021 12:36:18 +0000 (13:36 +0100)
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>
drivers/media/platform/qcom/venus/core.c

index bdd293faaad0f5e2441754e7faaf93cd6dafb143..7233a731175774001148411217efb8690a1f3461 100644 (file)
@@ -349,8 +349,10 @@ static void venus_core_shutdown(struct platform_device *pdev)
 {
        struct venus_core *core = platform_get_drvdata(pdev);
 
+       pm_runtime_get_sync(core->dev);
        venus_shutdown(core);
        venus_firmware_deinit(core);
+       pm_runtime_put_sync(core->dev);
 }
 
 static __maybe_unused int venus_runtime_suspend(struct device *dev)