All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] venus: core: Fix platform driver shutdown
@ 2020-12-21  9:58 Stanimir Varbanov
  2020-12-21 10:40 ` Shawn Guo
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Stanimir Varbanov @ 2020-12-21  9:58 UTC (permalink / raw)
  To: linux-media, linux-arm-msm, linux-kernel
  Cc: Bjorn Andersson, Shawn Guo, vgarodia, Mansur Alisha Shaik,
	Stanimir Varbanov

With TZ system reboot cannot finish successfully. To fix that
enable core clocks by runtime pm before TZ calls and disable
clocks after that.

Fixes: 7399139be6b2 ("media: venus: core: add shutdown callback for venus")
Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
---
 drivers/media/platform/qcom/venus/core.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/media/platform/qcom/venus/core.c b/drivers/media/platform/qcom/venus/core.c
index bdd293faaad0..7233a7311757 100644
--- a/drivers/media/platform/qcom/venus/core.c
+++ b/drivers/media/platform/qcom/venus/core.c
@@ -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)
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-03-01 20:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-21  9:58 [PATCH] venus: core: Fix platform driver shutdown Stanimir Varbanov
2020-12-21 10:40 ` Shawn Guo
2021-01-19  7:40 ` Shawn Guo
2021-01-19  7:59   ` Stanimir Varbanov
2021-01-19  8:22     ` Shawn Guo
2021-03-01 19:59 ` patchwork-bot+linux-arm-msm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.