mfd: ti_am335x_tscadc: Fix TSC resume
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Mon, 8 Sep 2014 13:28:42 +0000 (15:28 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Nov 2014 16:59:50 +0000 (08:59 -0800)
commitd2501bb0cf166503c427f13aeb73547ccecf66f5
tree7077149b0aee2e52be222fa28914bae106472fe3
parentbb01842184bc89666819ee7dceb78c61505036ed
mfd: ti_am335x_tscadc: Fix TSC resume

commit 6a71f38dd87f255a0586104ce2a14d5a3ddf3401 upstream.

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")
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mfd/ti_am335x_tscadc.c