summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorLu Huang <huanglu@kylinos.cn>2026-09-28 16:54:33 +0800
committerJiri Kosina <jkosina@suse.com>2026-11-20 14:59:24 +0100
commit72cfde169c753307cc4ea5fdd4090d45029d37fb (patch)
treeb4997ab08154e1b907dbdeea45840daa03a33148 /tools/perf/scripts/python/stackcollapse.py
parent7e1b58bd6d36aa76f920da72ae114574b21d5283 (diff)
HID: nintendo: fix lost update of player LED state
The player LED subcommand programs all four LEDs with a single value, so joycon_player_led_brightness_set() must aggregate the current brightness of all four LEDs and send that snapshot atomically. Commit 928276075f16 ("HID: nintendo: cleanup LED code") moved the aggregation loop out of output_mutex: if an update callback is preempted after reading the four states and another update sends its own snapshot first, the preempted callback later sends its stale value and silently reverts the completed update, leaving the hardware LED state inconsistent with sysfs brightness. Move the aggregation loop back under output_mutex so reading the four LED states and sending the subcommand are serialized. Fixes: 928276075f16 ("HID: nintendo: cleanup LED code") Cc: stable@vger.kernel.org Signed-off-by: Lu Huang <huanglu@kylinos.cn> Signed-off-by: Jiri Kosina <jkosina@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions