]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mfd: ti_am335x_tscadc: Fix TSC operation after ADC continouous mode
authorVignesh R <vigneshr@ti.com>
Mon, 1 Sep 2014 06:31:06 +0000 (12:01 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Nov 2014 18:10:25 +0000 (10:10 -0800)
commita4cc548f3796009f3d99db6a54de6e68b8a1266b
tree7bdeb92405f65c0bbb0307e9677f8032a515e22f
parent5281794fc3f9ced0343eb5fb6c5af31cfad5e994
mfd: ti_am335x_tscadc: Fix TSC operation after ADC continouous mode

commit 6ac734d2242949f41eb1346ca0fd4ed010c937aa upstream.

After enabling and disabling ADC continuous mode via sysfs, ts_print_raw
fails to return any data. This is because when ADC is configured for
continuous mode, it disables touch screen steps.These steps are not
re-enabled when ADC continuous mode is disabled. Therefore existing values
of REG_SE needs to be cached before enabling continuous mode and
disabling touch screen steps and enabling ADC steps. The cached value
are to be restored to REG_SE once ADC is disabled.

Fixes: 7ca6740cd1cd ("mfd: input: iio: ti_amm335x: Rework TSC/ADC synchronization")
Signed-off-by: Vignesh R <vigneshr@ti.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mfd/ti_am335x_tscadc.c