Linux Media Controller development
 help / color / mirror / Atom feed
* [PATCH v5 0/2] media: qcom: iris: fix runtime PM error handling
@ 2026-06-08  8:17 Hungyu Lin
  2026-06-08  8:17 ` [PATCH v5 1/2] media: qcom: iris: fix runtime PM reference leaks Hungyu Lin
  2026-06-08  8:17 ` [PATCH v5 2/2] media: qcom: iris: rollback OPP vote on PM resume failure Hungyu Lin
  0 siblings, 2 replies; 4+ messages in thread
From: Hungyu Lin @ 2026-06-08  8:17 UTC (permalink / raw)
  To: vikash.garodia, dikshita.agarwal
  Cc: abhinav.kumar, bod, mchehab, dmitry.baryshkov, konrad.dybcio,
	busanna.reddy, linux-media, linux-arm-msm, linux-kernel,
	Hungyu Lin

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


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

end of thread, other threads:[~2026-06-08  8:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-08  8:17 [PATCH v5 0/2] media: qcom: iris: fix runtime PM error handling Hungyu Lin
2026-06-08  8:17 ` [PATCH v5 1/2] media: qcom: iris: fix runtime PM reference leaks Hungyu Lin
2026-06-08  8:28   ` sashiko-bot
2026-06-08  8:17 ` [PATCH v5 2/2] media: qcom: iris: rollback OPP vote on PM resume failure Hungyu Lin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox