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-03-21 19:09:41 +00:00
2026-03-21 19:09:41 +00:00
2026-04-27 09:58:19 +01:00
2026-07-03 07:38:17 +02:00
2026-07-03 07:38:17 +02:00
2025-07-13 15:36:27 +01:00
2026-03-01 12:04:23 +00:00
2026-05-31 11:01:46 +01:00
2026-06-30 00:15:56 +01:00
2026-07-27 22:13:07 +01:00
2026-07-03 07:38:17 +02:00
2026-07-06 16:59:47 +01:00
2026-07-03 07:38:17 +02:00
2026-07-06 16:59:47 +01:00
2026-07-27 22:13:07 +01:00
2026-07-03 07:38:17 +02:00
2026-07-06 16:59:47 +01:00
2026-04-27 09:58:20 +01:00
2026-03-21 11:22:43 +00:00
2026-07-03 07:38:17 +02:00
2026-07-06 16:59:47 +01:00
2026-04-27 09:58:19 +01:00
2026-01-16 19:42:08 +00:00
2026-07-27 22:13:07 +01:00
2026-07-27 22:13:07 +01:00
2026-07-03 07:38:17 +02:00
2026-07-06 16:59:47 +01:00
2025-11-09 12:57:03 +00:00
2026-07-27 22:13:07 +01:00
2026-07-03 07:38:17 +02:00
2026-07-06 16:59:47 +01:00
2025-10-19 11:59:23 +01:00
2026-08-19 09:45:01 +02:00
2026-07-03 07:38:17 +02:00
2026-07-06 16:59:47 +01:00
2025-11-11 20:22:23 +00:00
2025-08-25 15:56:12 +01:00
2026-07-03 07:38:17 +02:00
2026-06-30 00:15:56 +01:00
2026-05-31 11:01:46 +01:00
2026-05-31 11:01:46 +01:00
2026-07-03 07:38:17 +02:00
2026-07-12 03:10:06 +01:00
2026-05-31 11:01:46 +01:00
2026-07-06 16:59:47 +01:00
2026-07-03 07:38:17 +02:00
2026-07-06 16:59:47 +01:00
2026-07-07 03:12:51 +01:00
2026-03-21 11:22:43 +00:00
2026-09-06 22:36:00 +01:00
2026-09-30 18:59:56 +01:00
2026-07-03 07:38:17 +02:00
2026-07-06 16:59:47 +01:00
2026-06-29 23:24:46 +01:00
2025-10-19 11:59:20 +01:00
2026-05-31 11:01:46 +01:00
2026-05-31 11:01:46 +01:00
2026-06-30 00:15:56 +01:00
2026-07-03 07:38:17 +02:00
2026-07-03 07:38:17 +02:00
2025-08-25 15:56:12 +01:00
2026-07-27 22:13:07 +01:00
2026-07-27 22:13:07 +01:00
2026-07-27 22:13:07 +01:00
2026-07-27 22:13:07 +01:00
2026-07-03 07:38:17 +02:00
2026-08-31 00:52:42 +01:00
2026-06-30 00:15:56 +01:00
2026-05-31 11:01:46 +01:00
2026-01-11 12:00:08 +00:00
2026-07-03 07:38:17 +02:00
2026-07-06 16:59:47 +01:00
2026-07-27 22:13:07 +01:00
2026-07-27 22:13:07 +01:00