]> 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)
commit81cf1d2ed88c56bca9b3587d6cb0559045f5fb47
tree4ffb506517e32e25a040bc00892b85ecc5ea725f
parent7aafcb45dbe2d7134ee31cb5866df76d424f9e9e
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