Re: [PATCH v3 3/4] Input: Don't program hw debounce for soc_button_array devices
From: Andy Shevchenko
Date: Thu Jun 26 2025 - 10:39:33 EST
On Wed, Jun 25, 2025 at 04:58:12PM -0500, Mario Limonciello wrote:
> From: Mario Limonciello <mario.limonciello@xxxxxxx>
>
> Programming a hardware debounce of 50ms causes problems where a button
> doesn't work properly anymore on some systems. This debounce is intended
> for compatibility with systems with a mechanical switch so soc_button_array
> devices should only be using a sofware debounce.
>
> Add support for indicating that a driver is only requesting gpio_keys
> to use software debounce support and mark that in soc_button_array
> accordingly.
...
> + gpio_keys_pdata->no_hw_debounce = TRUE;
true
--
With Best Regards,
Andy Shevchenko