mfd: ti_am335x_tscadc: Fix TSC resume
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Mon, 8 Sep 2014 13:28:42 +0000 (15:28 +0200)
committerLee Jones <lee.jones@linaro.org>
Fri, 26 Sep 2014 07:23:51 +0000 (08:23 +0100)
commit6a71f38dd87f255a0586104ce2a14d5a3ddf3401
tree499d632703a2fd5169458e32e1e94526f9e3b4b0
parent0b496b4c95c74ba795bc642a6092263ebf905759
mfd: ti_am335x_tscadc: Fix TSC resume

In the resume path, the ADC invokes am335x_tsc_se_set_cache() with 0 as
the steps argument if continous mode is not in use. This in turn disables
all steps and so the TSC is not working until one ADC sampling is
performed.

This patch fixes it by writing the current cached mask instead of the
passed steps.

Fixes: 7ca6740cd1cd ("mfd: input: iio: ti_amm335x: Rework TSC/ADCA
synchronization")
Cc: stable@vger.kernel.org # v3.13+
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/ti_am335x_tscadc.c