Linux IIO development
 help / color / mirror / Atom feed
* [PATCH v3 0/3] counter: rz-mtu3-cnt: check clock and runtime PM errors
@ 2026-09-03  9:07 Li Youhong
  2026-09-03  9:07 ` [PATCH v3 1/3] counter: rz-mtu3-cnt: check clk_prepare_enable() and pm_runtime_set_active() Li Youhong
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Li Youhong @ 2026-09-03  9:07 UTC (permalink / raw)
  To: biju.das.jz, wbg; +Cc: linux-iio, linux-renesas-soc, Li Youhong

From: Li Youhong <liyouhong@kylinos.cn>

v1 checked only clk_prepare_enable() in probe/resume. Reviewers asked
to also handle pm_runtime_set_active() and all runtime PM get call
sites. Split into three patches, including a follow-up for a
pre-existing runtime PM usage leak on counter init failure.

Changes v2->v3:
Link to v2: https://lore.kernel.org/all/20260831054407.1695146-1-dayou5941@163.com/
- Use pm_runtime_resume_and_get() instead of pm_runtime_get_sync()
  plus pm_runtime_put_noidle() on failure

Changes v1->v2
Link to v1: https://lore.kernel.org/all/20260828071123.179670-1-dayou5941@163.com/
- Also check pm_runtime_set_active() in probe
- Check pm_runtime_get_sync() everywhere
- New patch: put runtime PM ref if counter init fails after get

Li Youhong (3):
  counter: rz-mtu3-cnt: check clk_prepare_enable() and
    pm_runtime_set_active()
  counter: rz-mtu3-cnt: check pm_runtime_resume_and_get() return
    values
  counter: rz-mtu3-cnt: put runtime PM ref if counter init fails

 drivers/counter/rz-mtu3-cnt.c | 112 +++++++++++++++++++++++++++-------
 1 file changed, 83 insertions(+), 29 deletions(-)

-- 
2.25.1


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

end of thread, other threads:[~2026-09-03  9:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-03  9:07 [PATCH v3 0/3] counter: rz-mtu3-cnt: check clock and runtime PM errors Li Youhong
2026-09-03  9:07 ` [PATCH v3 1/3] counter: rz-mtu3-cnt: check clk_prepare_enable() and pm_runtime_set_active() Li Youhong
2026-09-03  9:07 ` [PATCH v3 2/3] counter: rz-mtu3-cnt: check pm_runtime_resume_and_get() return values Li Youhong
2026-09-03  9:07 ` [PATCH v3 3/3] counter: rz-mtu3-cnt: put runtime PM ref if counter init fails Li Youhong

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