mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3 0/2] iio: gyro: mpu3050: Fix runtime PM refcount leak in trigger enable path
@ 2026-11-03  9:20 Xiangwu Lai
  2026-11-03  9:20 ` [PATCH v3 1/2] iio: gyro: mpu3050: Split data ready trigger enable/disable into helpers Xiangwu Lai
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Xiangwu Lai @ 2026-11-03  9:20 UTC (permalink / raw)
  To: jic23, linux-iio; +Cc: linux-kernel, andy, dlechner, nuno.sa, laixiangwu

From: laixiangwu <laixiangwu@cmss.chinamobile.com>

Hi Jonathan,

This is a repost of the v2 series as a new top-level thread, as
requested. There are no code changes since v2.

For context, this series fixes a runtime PM refcount leak in the
mpu3050 data ready trigger enable path: patch 1 splits the enable
and disable paths out of mpu3050_drdy_trigger_set_state() into
separate helpers, and patch 2 applies the fix on top, using
pm_runtime_resume_and_get() instead of pm_runtime_get_sync(), which
also keeps the usage counter balanced when the resume fails.

Changes in v3:
- no code changes, the series is reposted as a new top-level thread
  (v2 was mistakenly sent as a reply to the review comments).

Changes in v2:
- split the enable and disable paths out of
  mpu3050_drdy_trigger_set_state() into a precursor patch, as
  suggested by the reviewer.
- use pm_runtime_resume_and_get() instead of pm_runtime_get_sync(),
  as suggested by the reviewer.

v2: https://lore.kernel.org/r/20261101092327.197-1-laixiangwu@cmss.chinamobile.com/
v1: https://lore.kernel.org/r/20261030084305.1660-1-laixiangwu@cmss.chinamobile.com/

laixiangwu (2):
  iio: gyro: mpu3050: Split data ready trigger enable/disable into
    helpers
  iio: gyro: mpu3050: Fix runtime PM refcount leak in trigger enable
    path

 drivers/iio/gyro/mpu3050-core.c | 182 +++++++++++++++++++-------------
 1 file changed, 108 insertions(+), 74 deletions(-)

-- 
2.50.1.windows.1




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

end of thread, other threads:[~2026-11-04  2:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-03  9:20 [PATCH v3 0/2] iio: gyro: mpu3050: Fix runtime PM refcount leak in trigger enable path Xiangwu Lai
2026-11-03  9:20 ` [PATCH v3 1/2] iio: gyro: mpu3050: Split data ready trigger enable/disable into helpers Xiangwu Lai
2026-11-04  1:59   ` Jonathan Cameron
2026-11-03  9:20 ` [PATCH v3 2/2] iio: gyro: mpu3050: Fix runtime PM refcount leak in trigger enable path Xiangwu Lai
2026-11-04  2:01   ` Jonathan Cameron
2026-11-04  1:49 ` [PATCH v3 0/2] " Jonathan Cameron

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®