]> git.baikalelectronics.ru Git - kernel.git/commit
Input: ti_am335x_tsc - fix STEPCONFIG setup for Z2
authorDario Binacchi <dariobin@libero.it>
Mon, 13 Dec 2021 05:14:48 +0000 (21:14 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 20 Dec 2021 07:53:54 +0000 (23:53 -0800)
commitec3ff63907b3cd99d94021f8f49dda59eb734ea8
treea585cf75754503b26e1103984132355820f8ca13
parentf71dba42370c463657a41e587876681bff9746b9
Input: ti_am335x_tsc - fix STEPCONFIG setup for Z2

The Z2 step configuration doesn't erase the SEL_INP_SWC_3_0 bit-field
before setting the ADC channel. This way its value could be corrupted by
the ADC channel selected for the Z1 coordinate.

Fixes: 9a4872bcf707 ("input: ti_am335x_adc: use only FIFO0 and clean up a little")
Signed-off-by: Dario Binacchi <dariobin@libero.it>
Link: https://lore.kernel.org/r/20211212125358.14416-3-dariobin@libero.it
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/ti_am335x_tsc.c