]> git.baikalelectronics.ru Git - kernel.git/commit
Input: st1232 - do not reset the chip too early
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 21 Oct 2019 18:02:33 +0000 (11:02 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 29 Oct 2019 04:01:46 +0000 (21:01 -0700)
commit07e4fee5df9d59ed5b55680361e67f8f02fd7d7d
treebbdb0d23c2bd407b98485ef5816b06b750f9ea11
parent3a301a9828b67547c6bb6a6a0ad12efa237ebf6e
Input: st1232 - do not reset the chip too early

We should not be putting the chip into reset while interrupts are enabled
and ISR may be running. Fix this by installing a custom devm action and
powering off the device/resetting GPIO line from there. This ensures proper
ordering.

Tested-by: Matthias Fend <Matthias.Fend@wolfvision.net>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/st1232.c