]> git.baikalelectronics.ru Git - kernel.git/commit
staging:iio:adc:MXS:LRADC: fix touchscreen statemachine
authorJuergen Beisert <jbe@pengutronix.de>
Mon, 24 Feb 2014 14:39:00 +0000 (14:39 +0000)
committerJonathan Cameron <jic23@kernel.org>
Mon, 24 Feb 2014 21:55:50 +0000 (21:55 +0000)
commit2eaf051a8cc7ac7d9a3bed8713d4b62bc20930ec
tree2ee320fa5e1768c9374cc73bb64503440e6cbde3
parent39358aaf39ff2654ad4a2a018e0d49be7d2db71c
staging:iio:adc:MXS:LRADC: fix touchscreen statemachine

Releasing the touchscreen lets the internal statemachine left in a wrong state.
Due to this the release coordinate will be reported again by accident when the next
touchscreen event happens. This change sets up the correct state when waiting
for the next touchscreen event.

This has led to reported issues with calibrating the touchscreen.
Bug was introduced somewhere in the series that began with
88b20e9b6c5190a599f860eab9603ee663102db2
Staging/iio/adc/touchscreen/MXS: add proper clock handling
in which the way this driver worked was substantially changed
to be interrupt driven rather than relying on a busy loop.
This was a regression in the 3.13 kernel.

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Tested-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Cc: stable@vger.kernel.org
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/adc/mxs-lradc.c