Files
Jiale Yao dd30c10ff6 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: b4b491c083 ("iio: accel: kxcjk-1013: Support thresholds")
Signed-off-by: Jiale Yao <[email protected]>
Cc: [email protected]
Signed-off-by: Jonathan Cameron <[email protected]>
2026-09-30 18:59:56 +01:00
..
…
2026-07-06 16:59:47 +01:00
…
2026-07-06 16:59:47 +01:00
…
2026-07-06 16:59:47 +01:00
2026-07-06 16:59:47 +01:00
2026-07-06 16:59:47 +01:00
2026-07-06 16:59:47 +01:00
2026-07-06 16:59:47 +01:00
…
2025-10-19 11:59:20 +01:00
…