]> git.baikalelectronics.ru Git - kernel.git/commit
Input: atmel_mxt_ts - fix reset-gpio for level based irqs
authorSebastian Reichel <sebastian.reichel@collabora.co.uk>
Thu, 24 May 2018 16:33:36 +0000 (09:33 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 24 May 2018 16:56:47 +0000 (09:56 -0700)
commitcc5cd85ebbdeebea9b37b329ec862f51a4c739f8
treeed70919d1e1ee7cdb724462c3ff851baec82e63f
parent57d89aa80a5b2c2d588138122d2d33844c800a69
Input: atmel_mxt_ts - fix reset-gpio for level based irqs

The current reset-gpio support triggers an interrupt storm on platforms
using the maxtouch with level based interrupt. The Motorola Droid 4,
which I used for some of the tests is not affected, since it uses a edge
based interrupt.

This change avoids the interrupt storm by enabling the device while its
interrupt is disabled. Afterwards we wait 100ms. This is important for
two reasons: The device is unresponsive for some time (~22ms for
mxt224E) and the CHG (interrupt) line is not working properly for 100ms.
We don't need to wait for any following interrupts, since the following
mxt_initialize() checks for bootloader mode anyways.

This fixes a boot issue on GE PPD (watchdog kills device due to
interrupt storm) and does not cause regression on Motorola Droid 4.

Fixes: 9d8fab8dbb8a ("Input: atmel_mxt_ts - add support for reset line")
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Reviewed-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/atmel_mxt_ts.c