]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf0e741ad7b00d2a82c45e6562f8c3d5f20828147
treedfe140f44853bcf8cfff52a81f661cf5bd238cbc
parent950c31669cca2c690bed8c1239036dc571ea78e6
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