[PATCH v5 0/2] media: qcom: iris: fix runtime PM error handling
From: Hungyu Lin
Date: Mon Jun 08 2026 - 04:18:10 EST
This series fixes two issues in the Iris power management path.
Patch 1 updates the runtime PM handling to use
pm_runtime_resume_and_get() and ensures that runtime PM references
remain balanced during power-down error handling.
Patch 2 rolls back the maximum OPP vote when
pm_runtime_resume_and_get() fails during power-up, preventing the
driver from leaving an unnecessary OPP vote active after a failed
resume.
Changes in v5:
- Handle pm_runtime_put_sync() return value in
iris_disable_power_domains().
- Add a blank line before return statement in rollback path.
Changes in v4:
- Added Dmitry Baryshkov's Reviewed-by tag to patch 1.
- Reworked rollback handling in patch 2 to use a standard goto-based
error path.
- Roll back the OPP vote from a dedicated error label when
pm_runtime_resume_and_get() fails.
Hungyu Lin (2):
media: qcom: iris: fix runtime PM reference leaks
media: qcom: iris: rollback OPP vote on PM resume failure
.../media/platform/qcom/iris/iris_resources.c | 20 ++++++++++++-------
1 file changed, 13 insertions(+), 7 deletions(-)
--
2.34.1