]> git.baikalelectronics.ru Git - kernel.git/commit
Input: atmel_mxt_ts - initialise IRQ before probing
authorNick Dyer <nick.dyer@itdev.co.uk>
Wed, 23 Jul 2014 18:25:55 +0000 (11:25 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 23 Jul 2014 20:25:09 +0000 (13:25 -0700)
commit183bf16260f3211aef8c462eca5e0bbaad48b997
tree4ffb506517e32e25a040bc00892b85ecc5ea725f
parent77f2853441e0e40898ab9848ddab4eef899a83f1
Input: atmel_mxt_ts - initialise IRQ before probing

The maXTouch chips use the CHG line to generate status events in bootloader
mode, and during configuration download, before there is enough information
to configure the input device. Therefore set up the interrupt handler
earlier.

However, this introduces states where parts of the interrupt processing
must not run. Use data->object_table as a way to tell whether the chip
information is valid, and data->input_dev as a way to tell whether it is
valid to generate input report.

Signed-off-by: Nick Dyer <nick.dyer@itdev.co.uk>
Acked-by: Benson Leung <bleung@chromium.org>
Acked-by: Yufeng Shen <miletus@chromium.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/atmel_mxt_ts.c