]> Git Repo - linux.git/commit
Input: st1232 - fix NORMAL vs. IDLE state handling
authorGeert Uytterhoeven <[email protected]>
Tue, 23 Feb 2021 17:30:09 +0000 (09:30 -0800)
committerDmitry Torokhov <[email protected]>
Tue, 23 Feb 2021 17:35:33 +0000 (09:35 -0800)
commit1bff77f41a805b16b5355497c217656711601282
tree2f6ca9678fa0ec70b9975a0438ca49bcbb7564a6
parentcbecf716ca618fd44feda6bd9a64a8179d031fc5
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: 6524d8eac258452e ("Input: st1232 - add IDLE state as ready condition")
Signed-off-by: Geert Uytterhoeven <[email protected]>
Reviewed-by: Michael Tretter <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Dmitry Torokhov <[email protected]>
drivers/input/touchscreen/st1232.c
This page took 0.077268 seconds and 4 git commands to generate.