Re: [PATCH 0/2] fix gpio-keys debouncing and timer sleep issues

Dmitry Torokhov
2009-06-29T05:59:50Z

Hi Jani,

On Fri, Jun 26, 2009 at 03:15:16PM +0300, Jani Nikula wrote:
> Alek, someone might depend on how debouncing worked before, so let's not
> break it. I, for one, am looking at using this in the future, and would
> want this to work as it was before.
>
> Why don't we fix this instead of debating? For simplicity, here's first
> a revert of the original patch and then a fix to the sleep issue.
> Unfortunately, I do not have the equipment to properly test this right
> now.
>

I intend to apply the both patches. It is unfortunate that we need to
use both a timer and a workqueue, I wonder what would it take to
implement something like reschedule_delayed_work() that would adjust
the delay in the same fashion that mod_timer() does?

--
Dmitry