diff options
author | Tony Lindgren <[email protected]> | 2021-01-10 18:50:53 -0800 |
---|---|---|
committer | Dmitry Torokhov <[email protected]> | 2021-01-10 22:23:00 -0800 |
commit | 905dbf1d39d7f008acc46475384b33f98c512baf (patch) | |
tree | 27460ce12c96dbaee716fbf295f2a159543c0b82 /net/unix/unix_bpf.c | |
parent | 7e0541b25702ccaa9560bdd2441caedca2d438e9 (diff) |
Input: omap4-keypad - scan keys in two phases and simplify with bitmask
Because of errata i689 the keyboard can idle with state where no key
up interrupts are seen until after the next key press.
This means we need to first check for any lost key up events before
scanning for new down events.
For example, rapidly pressing shift-shift-j can sometimes produce a J
instead of j. Let's fix the issue by scanning the keyboard in two
phases. First we scan for any key up events that we may have missed,
and then we scan for key down events.
Let's also simplify things with for_each_set_bit() as suggested by
Dmitry Torokhov <[email protected]>.
Signed-off-by: Tony Lindgren <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Dmitry Torokhov <[email protected]>
Diffstat (limited to 'net/unix/unix_bpf.c')
0 files changed, 0 insertions, 0 deletions