[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20250506055847.15389-1-lihua@huaqin.corp-partner.google.com>
Date: Tue, 6 May 2025 13:58:47 +0800
From: Hua Li <lihua@...qin.corp-partner.google.com>
To: dmitry.torokhov@...il.com,
hdegoede@...hat.com,
javier.carrasco.cruz@...il.com,
zack.rusin@...adcom.com,
namcao@...utronix.de,
andriy.shevchenko@...ux.intel.com,
tglx@...utronix.de
Cc: linux-input@...r.kernel.org,
linux-kernel@...r.kernel.org,
Hua Li <lihua@...qin.corp-partner.google.com>
Subject: [PATCH] Input: gpio-keys - Detect long press events in sleep mode
Previously, long pressing the gpio key could only detect short press
events and could not report long press events in sleep mode, we need
to recognize long press events in sleep mode and fix this issue.
Signed-off-by: Hua Li <lihua@...qin.corp-partner.google.com>
---
drivers/input/keyboard/gpio_keys.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/input/keyboard/gpio_keys.c b/drivers/input/keyboard/gpio_keys.c
index 5c39a217b94c..b546f38ecf8f 100644
--- a/drivers/input/keyboard/gpio_keys.c
+++ b/drivers/input/keyboard/gpio_keys.c
@@ -426,6 +426,8 @@ static irqreturn_t gpio_keys_gpio_isr(int irq, void *dev_id)
* handler to run.
*/
input_report_key(bdata->input, button->code, 1);
+ input_sync(bdata->input);
+ return IRQ_HANDLED;
}
}
--
2.17.1
Powered by blists - more mailing lists