Skip to content

Commit fd6874c

Browse files
committed
bump to 6.17.7-ba06
1 parent c928577 commit fd6874c

File tree

2 files changed

+56
-3
lines changed

2 files changed

+56
-3
lines changed

kernel.spec

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,13 +176,13 @@ Summary: The Linux kernel
176176
%define specrpmversion 6.17.7
177177
%define specversion 6.17.7
178178
%define patchversion 6.17
179-
%define pkgrelease ba05
179+
%define pkgrelease ba06
180180
%define kversion 6
181181
%define tarfile_release 6.17.7
182182
# This is needed to do merge window version magic
183183
%define patchlevel 17
184184
# This allows pkg_release to have configurable %%{?dist} tag
185-
%define specrelease ba05%{?buildid}%{?dist}
185+
%define specrelease ba06%{?buildid}%{?dist}
186186
# This defines the kabi tarball version
187187
%define kabiversion 6.17.7
188188

@@ -4536,7 +4536,8 @@ fi\
45364536
#
45374537
#
45384538
%changelog
4539-
* Fri Nov 07 2025 Antheas Kapenekakis <[email protected]> [6.17.7-ba05]
4539+
* Sat Nov 08 2025 Antheas Kapenekakis <[email protected]> [6.17.7-ba06]
4540+
- Input: gpio_keys - handle KEY_POWER gracefully during resume (Antheas Kapenekakis)
45404541
- ALSA: hda/realtek: Add ASUS GA403W quirk (Antheas Kapenekakis)
45414542
- platform/x86: asus-wmi: Don't reset charge threshold on boot (Antheas Kapenekakis)
45424543
- ALSA: hda/realtek: Add match for ASUS Xbox Ally projects (Antheas Kapenekakis)

patch-2-handheld.patch

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52338,3 +52338,55 @@ index 1cc063bf6c0b..a3479f12dfa3 100644
5233852338
--
5233952339
2.51.2
5234052340

52341+
52342+
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
52343+
From: Antheas Kapenekakis <[email protected]>
52344+
Date: Sat, 8 Nov 2025 21:14:37 +0100
52345+
Subject: Input: gpio_keys - handle KEY_POWER gracefully during resume
52346+
52347+
Currently, during resume from suspend, if an ISR runs for a gpio-key
52348+
the ISR will rightfully emit a key press event so that userspace does
52349+
not miss the event (e.g., on an embedded device we might sleep until
52350+
a user presses a button; and when we wake up we need to be able to
52351+
identify the specific button).
52352+
52353+
This creates an issue when the gpio-key is KEY_POWER. For ISA/ACPI
52354+
power buttons, when the resume is caused by the power button, the power
52355+
button device increases its wake up count but it does not re-emit
52356+
KEY_POWER during resume. Therefore, both the kernel and userspace
52357+
act unexpectedly if the gpio-key driver emits KEY_POWER during resume,
52358+
by e.g., getting stuck in a suspend loop.
52359+
52360+
This is a problem in newer ASUS devices (ASUS Z13, Xbox Ally, Xbox Ally
52361+
X) as they wire the power button to a gpio pin. Therefore, specifically
52362+
for KEY_POWER gpio-keys, suppress the event during resume to mirror this
52363+
behavior. Do not do it for all keys, as certain embedded devices might
52364+
be relying on this behavior.
52365+
52366+
Signed-off-by: Antheas Kapenekakis <[email protected]>
52367+
---
52368+
drivers/input/keyboard/gpio_keys.c | 8 ++++++++
52369+
1 file changed, 8 insertions(+)
52370+
52371+
diff --git a/drivers/input/keyboard/gpio_keys.c b/drivers/input/keyboard/gpio_keys.c
52372+
index f9db86da0818..48b927435170 100644
52373+
--- a/drivers/input/keyboard/gpio_keys.c
52374+
+++ b/drivers/input/keyboard/gpio_keys.c
52375+
@@ -420,6 +420,14 @@ static irqreturn_t gpio_keys_gpio_isr(int irq, void *dev_id)
52376+
pm_stay_awake(bdata->input->dev.parent);
52377+
if (bdata->suspended &&
52378+
(button->type == 0 || button->type == EV_KEY)) {
52379+
+ /*
52380+
+ * We woke up due to KEY_POWER. If we reprocess the
52381+
+ * event userspace/PM logic will get confused and
52382+
+ * the device will sleep again. Do not handle
52383+
+ * KEY_POWER during the resume phase.
52384+
+ */
52385+
+ if (button->code == KEY_POWER)
52386+
+ return IRQ_HANDLED;
52387+
/*
52388+
* Simulate wakeup key press in case the key has
52389+
* already released by the time we got interrupt
52390+
--
52391+
2.51.2
52392+

0 commit comments

Comments
 (0)