]> asedeno.scripts.mit.edu Git - linux.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)
commitefd7bb08a762d4f6322054c6824bd942971ac563
treebbdb0d23c2bd407b98485ef5816b06b750f9ea11
parent95dc58a9a02f9267cc08199e059329463cfe938c
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