From: Nick Dyer Date: Wed, 23 Jul 2014 18:25:55 +0000 (-0700) Subject: Input: atmel_mxt_ts - initialise IRQ before probing X-Git-Tag: omap-for-v3.17/fixes-against-rc2~115^2~1^2~47 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd24dcf566d0787297953bcaa3a7739586535a33;p=pandora-kernel.git 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 Acked-by: Benson Leung Acked-by: Yufeng Shen Signed-off-by: Dmitry Torokhov --- Reading git-diff-tree failed