Input: iqs7222 - configure power mode before triggering ATI
authorJeff LaBundy <jeff@labundy.com>
Sun, 9 Jul 2023 17:06:37 +0000 (12:06 -0500)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 10 Jul 2023 19:01:29 +0000 (12:01 -0700)
commit2e00b8bf5624767f6be7427b6eb532524793463e
tree683feb08151454130c10b82dd8b740fb18b2a19a
parent80c268c3394e9a7118c4ce0fee0eaffab85b762a
Input: iqs7222 - configure power mode before triggering ATI

If the device drops into ultra-low-power mode before being placed
into normal-power mode as part of ATI being triggered, the device
does not assert any interrupts until the ATI routine is restarted
two seconds later.

Solve this problem by adopting the vendor's recommendation, which
calls for the device to be placed into normal-power mode prior to
being configured and ATI being triggered.

The original implementation followed this sequence, but the order
was inadvertently changed as part of the resolution of a separate
erratum.

Fixes: 1e4189d8af27 ("Input: iqs7222 - protect volatile registers")
Signed-off-by: Jeff LaBundy <jeff@labundy.com>
Link: https://lore.kernel.org/r/ZKrpHc2Ji9qR25r2@nixie71
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/iqs7222.c