Input: iqs5xx - re-initialize device upon warm reset
authorJeff LaBundy <jeff@labundy.com>
Mon, 25 Jan 2021 04:29:38 +0000 (20:29 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 25 Jan 2021 04:49:05 +0000 (20:49 -0800)
commite10ba0d3c042161a26311d43bd37c3634d7bc5ca
treedfe140f44853bcf8cfff52a81f661cf5bd238cbc
parent1302c71a30615226838f3583028d122f6792d720
Input: iqs5xx - re-initialize device upon warm reset

The device may be inadvertently reset during runtime in the event
of ESD strike, etc. To protect against this case, acknowledge the
SHOW_RESET interrupt and re-initialize the device.

To facilitate this change, expand the range of registers that are
read in the interrupt handler to include the system status fields.

Also, update the unrelated (but nearby) SUSPEND register field to
use the BIT() macro. The remaining register fields are cleaned up
in another patch.

Signed-off-by: Jeff LaBundy <jeff@labundy.com>
Link: https://lore.kernel.org/r/1611002626-5889-6-git-send-email-jeff@labundy.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/iqs5xx.c