]> 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)
commitd04a388207fd8dd1c9734532c7d0ecc39ebbfab0
treedfe140f44853bcf8cfff52a81f661cf5bd238cbc
parentb3bd491f7595f76033a15334e134ef48cb50b3e4
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