]> git.baikalelectronics.ru Git - kernel.git/commit
Input: adp5589-keys - fix event count mask
authorGuido Martínez <guido@vanguardiasur.com.ar>
Wed, 6 May 2015 23:35:21 +0000 (16:35 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 6 May 2015 23:39:28 +0000 (16:39 -0700)
commit789f45bf1971d8d6cf6bb46cde3c720bdcd9a1af
treeaabbd52a866540a9d51b203498355fa6145ac85b
parentd184fb61190ba43591622b67f181c84813a27a46
Input: adp5589-keys - fix event count mask

The event mask was specified as 0xF (4 bits) when in reality is 0x1F (5
bits) in order to be capable of representing all FIFO length values from
0 to 16.

This caused a problem: when the keypad reported 16 pending events the
driver took it as 0, and did nothing. This in turn caused the keypad to
re-issue the interrupt over and over again.

Signed-off-by: Guido Martínez <guido@vanguardiasur.com.ar>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/adp5589-keys.c