Skip to content

Commit baa0dc3

Browse files
authored
Fix touchbar resume as well
1 parent 52ea69f commit baa0dc3

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
From 03ddec77e371b1da163635d59b3d9e5a12ed574f Mon Sep 17 00:00:00 2001
2+
From: Aditya Garg <gargaditya08@live.com>
3+
Date: Sat, 7 Feb 2026 18:21:29 +0530
4+
Subject: [PATCH] HID: appletb-kbd: add .resume method in PM
5+
6+
Upon resuming from suspend, the Touch Bar driver was missing a resume method in order to restore the original mode the Touch Bar was on before suspending. It is the same as the reset_resume method.
7+
8+
Signed-off-by: Aditya Garg <gargaditya08@live.com>
9+
---
10+
drivers/hid/hid-appletb-kbd.c | 5 +++--
11+
1 file changed, 3 insertions(+), 2 deletions(-)
12+
13+
diff --git a/drivers/hid/hid-appletb-kbd.c b/drivers/hid/hid-appletb-kbd.c
14+
index b00687e67..0b10cff46 100644
15+
--- a/drivers/hid/hid-appletb-kbd.c
16+
+++ b/drivers/hid/hid-appletb-kbd.c
17+
@@ -477,7 +477,7 @@ static int appletb_kbd_suspend(struct hid_device *hdev, pm_message_t msg)
18+
return 0;
19+
}
20+
21+
-static int appletb_kbd_reset_resume(struct hid_device *hdev)
22+
+static int appletb_kbd_resume(struct hid_device *hdev)
23+
{
24+
struct appletb_kbd *kbd = hid_get_drvdata(hdev);
25+
26+
@@ -503,7 +503,8 @@ static struct hid_driver appletb_kbd_hid_driver = {
27+
.input_configured = appletb_kbd_input_configured,
28+
#ifdef CONFIG_PM
29+
.suspend = appletb_kbd_suspend,
30+
- .reset_resume = appletb_kbd_reset_resume,
31+
+ .resume = appletb_kbd_resume,
32+
+ .reset_resume = appletb_kbd_resume,
33+
#endif
34+
.driver.dev_groups = appletb_kbd_groups,
35+
};
36+
--
37+
2.52.0
38+

0 commit comments

Comments
 (0)