Re: [PATCH v3 0/2] iio: gyro: mpu3050: Fix runtime PM refcount leak in trigger enable path
From: Jonathan Cameron
Date: Tue Nov 03 2026 - 20:51:29 EST
On Tue, 3 Nov 2026 17:20:00 +0800
Xiangwu Lai <laixiangwu@xxxxxxxxxxxxxxxxxxxx> wrote:
> From: laixiangwu <laixiangwu@xxxxxxxxxxxxxxxxxxxx>
>
> 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).
Future reference. Don't do that unless specifically asked to do
so. Obviously you should never be in that position again, so this
is mostly for anyone else who sees your patch!
Thanks,
Jonathan