lkml.org 
[lkml]   [2020]   [Feb]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/2] Input: omap4-keypad - check state again for lost key-up interrupts
* Tony Lindgren <tony@atomide.com> [200227 02:05]:
> + /* Check once after debounce time when no more keys down */
> + if (!new_keys_pressed) {
> + usleep_range(OMAP4_DEBOUNCE_MS * 1000 * 2,
> + OMAP4_DEBOUNCE_MS * 1000 * 3);
> + new_keys_pressed = omap4_keypad_scan_keys(keypad_data);
> + }

So this can be outside the loop. And we actually need to clear
the state looks like.

I'll send out v2 series of these after some more debugging.

Regards,

Tony

\
 
 \ /
  Last update: 2020-02-27 17:09    [W:0.057 / U:0.816 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site