linux-rockchip.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next 0/2] fix PM usage counter unbalance
@ 2022-09-22 13:21 Zhang Qilong
  2022-09-22 13:21 ` [PATCH -next 1/2] drm/rockchip: vop: fix PM usage counter unbalance in vop ops Zhang Qilong
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Zhang Qilong @ 2022-09-22 13:21 UTC (permalink / raw)
  To: heiko, hjc, airlied, daniel, dri-devel, linux-rockchip

pm_runtime_get_sync will increment pm usage counter even it failed.
Forgetting to putting operation will result in reference leak here.
We fix it by replacing it with the newest pm_runtime_resume_and_get
to keep usage counter balanced.

Zhang Qilong (2):
  drm/rockchip: vop: fix PM usage counter unbalance in vop ops
  drm/rockchip: fix PM usage counter unbalance in poweron

 drivers/gpu/drm/rockchip/rockchip_drm_vop.c |  4 ++--
 drivers/gpu/drm/rockchip/rockchip_lvds.c    | 10 +++++++---
 2 files changed, 9 insertions(+), 5 deletions(-)

-- 
2.25.1


_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

end of thread, other threads:[~2022-10-29 22:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-22 13:21 [PATCH -next 0/2] fix PM usage counter unbalance Zhang Qilong
2022-09-22 13:21 ` [PATCH -next 1/2] drm/rockchip: vop: fix PM usage counter unbalance in vop ops Zhang Qilong
2022-09-22 13:21 ` [PATCH -next 2/2] drm/rockchip: fix PM usage counter unbalance in poweron Zhang Qilong
2022-10-29 22:08 ` (subset) [PATCH -next 0/2] fix PM usage counter unbalance Heiko Stuebner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).