On Sunday 12 October 2008, Haavard Skinnemoen wrote:
Just for the record ... I'm withdrawing this proposal, in the sense
that I won't be pursuing it any further. A lighter weight solution
is enough for now.
I think the framework we discussed -- lowlevel irq_chip mechanism
that can kick in hardware debouncing and report the duration of its
debounce delay, paired with upper level code that can kick in longer
software timers as needed -- is probably the right direction to go,
if anyone really needs this.
The overall delay shouldn't matter, no. But if an 10 msec hardware
debounce kicks in and you wanted 20 msec total, you'd want something
to conclude that a 10 msec software timer is more appropriate than
a 20 msec one. I was pointing out that in one construction, that
"something" would be platform setup code which knows more about how
the system is set up than a "dumb" software timer in that driver.
- Dave
--