iio: adc: at91: don't use the last converted data register
authorLudovic Desroches <ludovic.desroches@atmel.com>
Thu, 9 Oct 2014 14:02:00 +0000 (15:02 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sun, 14 Sep 2014 17:20:12 +0000 (18:20 +0100)
commitd4f51956ac8ad302db9b0c4e4232775b1baa7b44
tree453386d572137d274883a716658f25fc114a7610
parent1887e724e2b6df06847522fe9dc2ab53639516cc
iio: adc: at91: don't use the last converted data register

If touchscreen mode is enabled and a conversion is requested on another
channel, the result in the last converted data register can be a
touchscreen relative value. Starting a conversion involves to do a
conversion for all active channel. It starts with ADC channels and ends
with touchscreen channels. Then if ADC_LCD register is not read quickly,
its content may be a touchscreen conversion.
To remove this temporal constraint, the conversion value is taken from
the channel data register.

Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Acked-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: Stable@vger.kernel.org
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/at91_adc.c
This page took 0.02746 seconds and 5 git commands to generate.