]> git.baikalelectronics.ru Git - kernel.git/commit
Input: ad7877 - increase pen up imeout
authorMichael Hennerich <michael.hennerich@analog.com>
Wed, 10 Mar 2010 04:38:47 +0000 (20:38 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 10 Mar 2010 06:13:30 +0000 (22:13 -0800)
commit23b2c5b400b22efdf205e2c8460632d246c28a9f
treea668ba8445ba7cee4ef243684de51ac7e79c91ff
parent1d8b76de4036cd6535e4ef896eca332a7d9e1df7
Input: ad7877 - increase pen up imeout

The time interval between consecutive interrupts depends on a number of
tunables: first_conversion_delay, acquisition_time, averaging and foremost
the pen_down_acc_interval.

Since the mod_timer() action for the PEN UP event happens in the
spi_async() callback function, latencies incurred by the spi bus drivers
also need to be taken into account.

So all in all, give the PEN UP event a bit more wiggle room and increase
timeout to 100ms.

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/touchscreen/ad7877.c