* [PATCH] HID: appletb-kbd: add .resume method in PM
@ 2026-03-26 14:51 Aditya Garg
2026-03-26 15:17 ` Greg KH
0 siblings, 1 reply; 5+ messages in thread
From: Aditya Garg @ 2026-03-26 14:51 UTC (permalink / raw)
To: stable@vger.kernel.org, Greg KH; +Cc: Jiri Kosina
commit 1965445e13c09b79932ca8154977b4408cb9610c upstream.
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.
Cc: stable@vger.kernel.org
Signed-off-by: Aditya Garg <gargaditya08@live.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
---
drivers/hid/hid-appletb-kbd.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/hid/hid-appletb-kbd.c b/drivers/hid/hid-appletb-kbd.c
index b00687e67..0b10cff46 100644
--- a/drivers/hid/hid-appletb-kbd.c
+++ b/drivers/hid/hid-appletb-kbd.c
@@ -477,7 +477,7 @@ static int appletb_kbd_suspend(struct hid_device *hdev, pm_message_t msg)
return 0;
}
-static int appletb_kbd_reset_resume(struct hid_device *hdev)
+static int appletb_kbd_resume(struct hid_device *hdev)
{
struct appletb_kbd *kbd = hid_get_drvdata(hdev);
@@ -503,7 +503,8 @@ static struct hid_driver appletb_kbd_hid_driver = {
.input_configured = appletb_kbd_input_configured,
#ifdef CONFIG_PM
.suspend = appletb_kbd_suspend,
- .reset_resume = appletb_kbd_reset_resume,
+ .resume = appletb_kbd_resume,
+ .reset_resume = appletb_kbd_resume,
#endif
.driver.dev_groups = appletb_kbd_groups,
};
--
2.52.0
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [PATCH] HID: appletb-kbd: add .resume method in PM
2026-03-26 14:51 [PATCH] HID: appletb-kbd: add .resume method in PM Aditya Garg
@ 2026-03-26 15:17 ` Greg KH
2026-03-26 15:18 ` Aditya Garg
0 siblings, 1 reply; 5+ messages in thread
From: Greg KH @ 2026-03-26 15:17 UTC (permalink / raw)
To: Aditya Garg; +Cc: stable@vger.kernel.org, Jiri Kosina
On Thu, Mar 26, 2026 at 02:51:47PM +0000, Aditya Garg wrote:
> commit 1965445e13c09b79932ca8154977b4408cb9610c upstream.
>
> 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.
>
> Cc: stable@vger.kernel.org
> Signed-off-by: Aditya Garg <gargaditya08@live.com>
> Signed-off-by: Jiri Kosina <jkosina@suse.com>
> ---
> drivers/hid/hid-appletb-kbd.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
What kernel tree(s) is this for?
thanks,
greg k-h
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] HID: appletb-kbd: add .resume method in PM
2026-03-26 15:17 ` Greg KH
@ 2026-03-26 15:18 ` Aditya Garg
0 siblings, 0 replies; 5+ messages in thread
From: Aditya Garg @ 2026-03-26 15:18 UTC (permalink / raw)
To: Greg KH; +Cc: stable@vger.kernel.org, Jiri Kosina
> On 26 Mar 2026, at 8:47 PM, Greg KH <gregkh@linuxfoundation.org> wrote:
>
> On Thu, Mar 26, 2026 at 02:51:47PM +0000, Aditya Garg wrote:
>> commit 1965445e13c09b79932ca8154977b4408cb9610c upstream.
>>
>> 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.
>>
>> Cc: stable@vger.kernel.org
>> Signed-off-by: Aditya Garg <gargaditya08@live.com>
>> Signed-off-by: Jiri Kosina <jkosina@suse.com>
>> ---
>> drivers/hid/hid-appletb-kbd.c | 5 +++--
>> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> What kernel tree(s) is this for?
It should apply on 6.18 and 6.19
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH] HID: appletb-kbd: add .resume method in PM
@ 2026-02-16 21:24 Aditya Garg
2026-03-12 13:03 ` Jiri Kosina
0 siblings, 1 reply; 5+ messages in thread
From: Aditya Garg @ 2026-02-16 21:24 UTC (permalink / raw)
To: Jiri Kosina, Benjamin Tissoires; +Cc: linux-input, linux-kernel, stable
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.
Cc: stable@vger.kernel.org
Signed-off-by: Aditya Garg <gargaditya08@live.com>
---
drivers/hid/hid-appletb-kbd.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/hid/hid-appletb-kbd.c b/drivers/hid/hid-appletb-kbd.c
index b00687e67..0b10cff46 100644
--- a/drivers/hid/hid-appletb-kbd.c
+++ b/drivers/hid/hid-appletb-kbd.c
@@ -477,7 +477,7 @@ static int appletb_kbd_suspend(struct hid_device *hdev, pm_message_t msg)
return 0;
}
-static int appletb_kbd_reset_resume(struct hid_device *hdev)
+static int appletb_kbd_resume(struct hid_device *hdev)
{
struct appletb_kbd *kbd = hid_get_drvdata(hdev);
@@ -503,7 +503,8 @@ static struct hid_driver appletb_kbd_hid_driver = {
.input_configured = appletb_kbd_input_configured,
#ifdef CONFIG_PM
.suspend = appletb_kbd_suspend,
- .reset_resume = appletb_kbd_reset_resume,
+ .resume = appletb_kbd_resume,
+ .reset_resume = appletb_kbd_resume,
#endif
.driver.dev_groups = appletb_kbd_groups,
};
--
2.52.0
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [PATCH] HID: appletb-kbd: add .resume method in PM
2026-02-16 21:24 Aditya Garg
@ 2026-03-12 13:03 ` Jiri Kosina
0 siblings, 0 replies; 5+ messages in thread
From: Jiri Kosina @ 2026-03-12 13:03 UTC (permalink / raw)
To: Aditya Garg; +Cc: Benjamin Tissoires, linux-input, linux-kernel, stable
On Tue, 17 Feb 2026, Aditya Garg wrote:
> 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.
>
> Cc: stable@vger.kernel.org
> Signed-off-by: Aditya Garg <gargaditya08@live.com>
Now in hid.git#for-7.0/upstream-fixes, thanks.
--
Jiri Kosina
SUSE Labs
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-03-26 15:18 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-26 14:51 [PATCH] HID: appletb-kbd: add .resume method in PM Aditya Garg
2026-03-26 15:17 ` Greg KH
2026-03-26 15:18 ` Aditya Garg
-- strict thread matches above, loose matches on Subject: below --
2026-02-16 21:24 Aditya Garg
2026-03-12 13:03 ` Jiri Kosina
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox