* [PATCH] media: qcom: iris: handle runtime PM resume failure in core deinit
@ 2026-06-04 4:28 Hungyu Lin
0 siblings, 0 replies; only message in thread
From: Hungyu Lin @ 2026-06-04 4:28 UTC (permalink / raw)
To: vikash.garodia, bod, mchehab
Cc: abhinav.kumar, stefan.schmidt, hverkuil, linux-media,
linux-arm-msm, linux-kernel, Hungyu Lin
Check the return value of pm_runtime_resume_and_get() in
iris_core_deinit().
If runtime PM resume fails, avoid accessing hardware resources
and skip the corresponding pm_runtime_put_sync() call, preventing
unbalanced runtime PM references.
Fixes: bb8a95aa038e ("media: iris: implement power management")
Signed-off-by: Hungyu Lin <dennylin0707@gmail.com>
---
drivers/media/platform/qcom/iris/iris_core.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/drivers/media/platform/qcom/iris/iris_core.c b/drivers/media/platform/qcom/iris/iris_core.c
index dbaac01eb15a..a3275ea57557 100644
--- a/drivers/media/platform/qcom/iris/iris_core.c
+++ b/drivers/media/platform/qcom/iris/iris_core.c
@@ -12,7 +12,11 @@
void iris_core_deinit(struct iris_core *core)
{
- pm_runtime_resume_and_get(core->dev);
+ int ret;
+
+ ret = pm_runtime_resume_and_get(core->dev);
+ if (ret)
+ return;
mutex_lock(&core->lock);
if (core->state != IRIS_CORE_DEINIT) {
--
2.34.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-04 4:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-04 4:28 [PATCH] media: qcom: iris: handle runtime PM resume failure in core deinit Hungyu Lin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®