summaryrefslogtreecommitdiff
path: root/fs/hfs
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2021-01-11 05:50:53 +0300
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2021-01-11 09:23:00 +0300
commit905dbf1d39d7f008acc46475384b33f98c512baf (patch)
tree27460ce12c96dbaee716fbf295f2a159543c0b82 /fs/hfs
parent7e0541b25702ccaa9560bdd2441caedca2d438e9 (diff)
downloadlinux-905dbf1d39d7f008acc46475384b33f98c512baf.tar.xz
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 <dmitry.torokhov@gmail.com>. Signed-off-by: Tony Lindgren <tony@atomide.com> Link: https://lore.kernel.org/r/20210110190529.46135-3-tony@atomide.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'fs/hfs')
0 files changed, 0 insertions, 0 deletions