diff options
| author | Vasilij Markin <vasilij.kernel@tototo.si> | 2026-10-15 23:47:36 +0200 |
|---|---|---|
| committer | Lukas Wunner <lukas@wunner.de> | 2026-10-16 09:50:54 +0200 |
| commit | 6f6a6b9ae0b481b97dac141ae86becdf7bd0b471 (patch) | |
| tree | b617e68280cb9488365258ca03c4994c6859359f /include/drm | |
| parent | 382c1e8ba409d1611cd256dccebdfa828c832bb1 (diff) | |
drm/appletbdrm: Add suspend and resume support
The driver has no USB power management callbacks, so the USB core
unbinds it before system suspend and binds it again on resume. The DRM
device is unregistered and registered again on every suspend and resume
cycle, userspace driving the Touch Bar through it (such as tiny-dfr)
loses its device, and the Touch Bar stays dark after resume.
Implement suspend and resume with drm_mode_config_helper_suspend() and
drm_mode_config_helper_resume(), so the device stays registered and the
last committed state is restored on resume. If the device was reset
while suspended, repeat the probe-time handshake first.
Fixes: 0670c2f56e45 ("drm/tiny: add driver for Apple Touch Bars in x86 Macs")
Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Vasilij Markin <vasilij.kernel@tototo.si>
Signed-off-by: Lukas Wunner <lukas@wunner.de>
Link: https://patch.msgid.link/20261015-appletbdrm-pm-v3-1-47377176619a@tototo.si
Diffstat (limited to 'include/drm')
0 files changed, 0 insertions, 0 deletions
