linux/drivers/input
Imre Deak c9e617a563 Input: ads7846 - handle IRQs that were latched during disabled IRQs
The pen down IRQ will toggle during each X,Y,Z measurement cycle.
Even though the IRQ is disabled it will be latched and delivered
when after enable_irq. Thus in the IRQ handler we must avoid
starting a new measurement cycle when such an "unwanted" IRQ happens.
Add a get_pendown_state platform function, which will probably
determine this by reading the current GPIO level of the pen IRQ pin.

Move the IRQ reenabling from the SPI RX function to the timer. After
the last power down message the pen IRQ pin is still active for a
while and get_pendown_state would report incorrectly a pen down state.

When suspending we should check the ts->pending flag instead of
ts->pendown, since the timer can be pending regardless of ts->pendown.
Also if ts->pending is set we can be sure that the timer is running,
so no need to rearm it. Similarly if ts->pending is not set we can
be sure that the IRQ is enabled (and the timer is not).

Signed-off-by: Imre Deak <imre.deak@nokia.com>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
2006-04-11 23:44:05 -04:00
..
gameport Input: gameport - fix memory leak 2006-03-14 00:13:34 -05:00
joystick Input: gamecon - add SNES mouse support 2006-04-02 00:10:05 -05:00
keyboard Manual merge with Linus. 2006-04-02 00:08:05 -05:00
misc Input: wistron - add support for Fujitsu N3510 2006-04-05 00:40:01 -04:00
mouse Input: synaptics - limit rate to 40pps on Toshiba Protege M300 2006-04-02 00:10:18 -05:00
serio Manual merge with Linus. 2006-04-02 00:08:05 -05:00
touchscreen Input: ads7846 - handle IRQs that were latched during disabled IRQs 2006-04-11 23:44:05 -04:00
evbug.c Input: use kzalloc() throughout the code 2006-03-14 00:09:16 -05:00
evdev.c Input: use kzalloc() throughout the code 2006-03-14 00:09:16 -05:00
input.c Input: make modalias code respect allowed buffer size 2006-04-02 00:09:51 -05:00
joydev.c Input: use kzalloc() throughout the code 2006-03-14 00:09:16 -05:00
Kconfig
Makefile
mousedev.c Input: use kzalloc() throughout the code 2006-03-14 00:09:16 -05:00
power.c Input: use kzalloc() throughout the code 2006-03-14 00:09:16 -05:00
tsdev.c Input: use kzalloc() throughout the code 2006-03-14 00:09:16 -05:00