]> 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)
commit30efd23cc9581169b2e95fdad952f469d242e6d9
treebbdb0d23c2bd407b98485ef5816b06b750f9ea11
parent922ea366ff144bceed9f63e4f632430a76f340a1
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