summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJiale Yao <yaojiale02@163.com>2026-09-25 22:09:54 +0800
committerJonathan Cameron <jonathan.cameron@oss.qualcomm.com>2026-11-02 00:37:35 +0000
commitd0c8bd5d18a492d64d05482f4b1700e14df7ff84 (patch)
tree649493023e3db09936e94086c41d84bf5ffa94d2 /tools/perf/scripts/python
parent6628e7d4c6b25c8d18f1345e3a20d21829aae7e4 (diff)
iio: gyro: bmg160: reject duplicate event disable
The IIO core does not filter duplicate writes to the event enable attribute. bmg160_write_event_config() already ignores repeated enable requests, but a repeated disable request still calls bmg160_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: 22b46c45fb9b ("iio:gyro:bmg160 Gyro Sensor driver") 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 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions