Thread (53 messages) 53 messages, 5 authors, 2025-06-27

Re: [PATCH v3 1/4] gpiolib: acpi: Add a helper for programming debounce

From: Mario Limonciello <superm1@kernel.org>
Date: 2025-06-26 16:04:13
Also in: linux-acpi, linux-gpio, lkml

On 6/26/2025 9:29 AM, Andy Shevchenko wrote:
On Wed, Jun 25, 2025 at 04:58:10PM -0500, Mario Limonciello wrote:
quoted
Debounce is programmed in two places and considered non-fatal in one of
them. Introduce a helper for programming debounce and show a warning
when failing to program.
quoted
This is a difference in behavior for the call
in acpi_dev_gpio_irq_wake_get_by().
When I meant "both", I was thinking of the _single_ existing case and new one
which you are about to add. In principle, I think changing behaviour here is
undesired. We provoke BIOS writers to make mistakes with debounce settings in
GpioInt() resources.

I agree on the patch...
quoted
-			/* ACPI uses hundredths of milliseconds units */
-			ret = gpio_set_debounce_timeout(desc, info.debounce * 10);
-			if (ret)
-				return ret;
+			acpi_set_debounce_timeout(desc, info.debounce);
...except this hunk.
OK in that case I'll just squash patches 1 and 2 together, pick up Hans' 
tag and drop this hunk.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help