]> git.baikalelectronics.ru Git - kernel.git/commit
Input: atmel_mxt_ts - fix lost interrupts
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 1 Dec 2020 17:55:29 +0000 (09:55 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 1 Dec 2020 17:58:43 +0000 (09:58 -0800)
commit23ab014ee6c97089685d7b97709ae2d00cc4ca46
tree895d359aeb97a8c166d9c61c09ef9f81fe0e6bcd
parent53cb773a98cb3a2be81a9445cb581aad2f75c017
Input: atmel_mxt_ts - fix lost interrupts

After commit 27a1bd451e04 devices requiring the workaround for edge
triggered interrupts stopped working.

The hardware needs the quirk to be used before even proceeding to
check if the quirk is needed because mxt_acquire_irq() is called
before mxt_check_retrigen() is called and at this point pending IRQs
need to be checked, and if the workaround is not active, all
interrupts will be lost from this point.

Solve this by switching the calls around.

Reported-by: Andre Müller <andre.muller@web.de>
Tested-by: Andre Müller <andre.muller@web.de>
Suggested-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Fixes: 27a1bd451e04 ("Input: atmel_mxt_ts - only read messages in mxt_acquire_irq() when necessary")
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20201201123026.1416743-1-linus.walleij@linaro.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/atmel_mxt_ts.c