summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorAndre Eikmeyer <dev@deq.rocks>2026-07-18 14:15:26 +0200
committerJiri Kosina <jkosina@suse.com>2026-08-03 21:59:35 +0200
commit2b5d1495bd101f3d9c13caf3923754f48ee7371a (patch)
treeeb1ea466a86e0c33faf1d0fd2172b4bb8ef3d41c /tools/perf/scripts/python/stackcollapse.py
parent6bad2e38fe7f2da7dc982b2b80814e632832e568 (diff)
HID: apple: preserve keyboard backlight across T2 resume
The T2 virtual USB host controller re-enumerates the internal keyboard after system resume. The butterfly keyboard backlight currently uses LED_CORE_SUSPENDRESUME, so the LED core sends a blocking request to the old HID device while it is disappearing. That request fails with -ENODEV and the newly probed device starts with its backlight off. To fix this, we cache the requested brightness when the old HID device is removed and restore it when the replacement is probed. We let re-enumeration handle restoration instead of issuing a request through the stale device. Fixes: 1f95a6cd5ad7 ("HID: apple: ensure the keyboard backlight is off if suspending") Cc: stable@vger.kernel.org Signed-off-by: Andre Eikmeyer <dev@deq.rocks> Signed-off-by: Jiri Kosina <jkosina@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions