summaryrefslogtreecommitdiffstats
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorJiale Yao <yaojiale02@163.com>2026-09-25 22:09:43 +0800
committerJonathan Cameron <jonathan.cameron@oss.qualcomm.com>2026-09-30 18:59:56 +0100
commitdd30c10ff60d2b30386c23bb7c61cc97f2385c97 (patch)
treea350f3936020fc2f4fb79ea5d04092ea36c850f3 /lib/debugobjects.c
parent84bb0fc46ccf6a545b8fdf57cda83770186ed8dd (diff)
downloadlinux-stable-dd30c10ff60d2b30386c23bb7c61cc97f2385c97.tar.gz
linux-stable-dd30c10ff60d2b30386c23bb7c61cc97f2385c97.zip
iio: accel: kxcjk-1013: reject duplicate event disable
The IIO core does not filter duplicate writes to the event enable attribute. kxcjk1013_write_event_config() already ignores repeated enable requests, but a repeated disable request still calls kxcjk1013_set_power_state(data, false), dropping a runtime PM reference that was not acquired for this request. This can underflow the runtime PM usage count and trigger a "Runtime PM usage count underflow" warning. Return early when the requested state already matches ev_enable_state. Fixes: b4b491c0832e ("iio: accel: kxcjk-1013: Support thresholds") Signed-off-by: Jiale Yao <yaojiale02@163.com> Cc: stable@vger.kernel.org Signed-off-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions