linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Fix soc-button-array debounce
@ 2025-06-25 18:13 Mario Limonciello
  2025-06-25 18:13 ` [PATCH v2 1/3] gpiolib: acpi: Add a helper for programming debounce Mario Limonciello
                   ` (2 more replies)
  0 siblings, 3 replies; 20+ messages in thread
From: Mario Limonciello @ 2025-06-25 18:13 UTC (permalink / raw)
  To: Hans de Goede, Mika Westerberg, Andy Shevchenko, Linus Walleij,
	Bartosz Golaszewski, Dmitry Torokhov
  Cc: open list:GPIO ACPI SUPPORT, open list:GPIO ACPI SUPPORT,
	open list,
	open list:INPUT (KEYBOARD, MOUSE, JOYSTICK, TOUCHSCREEN)...,
	Mario Limonciello

From: Mario Limonciello <mario.limonciello@amd.com>

I have some hardware in front of me that uses the soc-button-array
driver but the power button doesn't work.

Digging into it, it's because the ASL prescribes a debounce of 0 for
the power button, but the soc-button-array driver hardcodes 50ms.

Hardcoding it to what the ASL expects the power button works.

I looked at the callpath into the GPIO core and I believe it's
because the debounce value from _CRS is never programmed to the
hardware the way that the GPIO gets setup.

This series add that programming path and then sets the hardcoded
value on on some quirked systems.  Hopefully Hans can confirm this
continues to work on the hardware that he originally developed the
hardcoding for.

---
v2:
 * Add a helper for making ACPI debounce program nonfatal
 * Use a quirk instead of a revert

Mario Limonciello (3):
  gpiolib: acpi: Add a helper for programming debounce
  gpiolib: acpi: Program debounce when finding GPIO
  Input: soc_button_array: Only debounce cherryview and baytrail systems

 drivers/gpio/gpiolib-acpi-core.c      | 25 ++++++++++++++-----------
 drivers/input/misc/soc_button_array.c | 21 ++++++++++++++++++++-
 2 files changed, 34 insertions(+), 12 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2025-06-27  5:08 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-25 18:13 [PATCH v2 0/3] Fix soc-button-array debounce Mario Limonciello
2025-06-25 18:13 ` [PATCH v2 1/3] gpiolib: acpi: Add a helper for programming debounce Mario Limonciello
2025-06-25 18:58   ` Hans de Goede
2025-06-25 18:13 ` [PATCH v2 2/3] gpiolib: acpi: Program debounce when finding GPIO Mario Limonciello
2025-06-25 18:58   ` Hans de Goede
2025-06-25 18:13 ` [PATCH v2 3/3] Input: soc_button_array: Only debounce cherryview and baytrail systems Mario Limonciello
2025-06-25 19:03   ` Hans de Goede
2025-06-25 19:23     ` Mario Limonciello
2025-06-25 19:42       ` Hans de Goede
2025-06-25 20:34         ` Mario Limonciello
2025-06-26 18:27           ` Dmitry Torokhov
2025-06-26 18:30             ` Mario Limonciello
2025-06-26 18:53               ` Dmitry Torokhov
2025-06-26 18:58                 ` Mario Limonciello
2025-06-26 19:04                 ` Hans de Goede
2025-06-26 19:32                   ` Dmitry Torokhov
2025-06-26 19:37                     ` Mario Limonciello
2025-06-26 19:54                       ` Dmitry Torokhov
2025-06-26 21:39                         ` Mario Limonciello
2025-06-27  5:08                           ` Dmitry Torokhov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).