]> git.baikalelectronics.ru Git - kernel.git/commit
Input: st1232 - fix NORMAL vs. IDLE state handling
authorGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 23 Feb 2021 17:30:09 +0000 (09:30 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 23 Feb 2021 17:35:33 +0000 (09:35 -0800)
commit6a1c6bc9addf598b1460d7fa90712f0147340917
tree2f6ca9678fa0ec70b9975a0438ca49bcbb7564a6
parent853ed46a4cd0bf5ecccacdb9a74748c1b940b7bb
Input: st1232 - fix NORMAL vs. IDLE state handling

NORMAL (0x0) and IDLE (0x4) are really two different states.  Hence you
cannot check for both using a bitmask, as that checks for IDLE only,
breaking operation for devices that are in NORMAL state.

Fix the wait function to report either state as ready.

Fixes: 067aa8a91e74cb88 ("Input: st1232 - add IDLE state as ready condition")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Michael Tretter <m.tretter@pengutronix.de>
Link: https://lore.kernel.org/r/20210223090201.1430542-1-geert+renesas@glider.be
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/st1232.c