Skip to content

Commit

Permalink
Input: ad7877 - increase pen up imeout
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michael Hennerich authored and Dmitry Torokhov committed Mar 10, 2010
1 parent 06a0912 commit 4eb6f91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/input/touchscreen/ad7877.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
#include <linux/spi/ad7877.h>
#include <asm/irq.h>

#define TS_PEN_UP_TIMEOUT msecs_to_jiffies(50)
#define TS_PEN_UP_TIMEOUT msecs_to_jiffies(100)

#define MAX_SPI_FREQ_HZ 20000000
#define MAX_12BIT ((1<<12)-1)
Expand Down

0 comments on commit 4eb6f91

Please sign in to comment.