]> git.baikalelectronics.ru Git - kernel.git/commit
Input: atmel_mxt_ts - use mxt_acquire_irq in mxt_soft_reset
authorNick Dyer <nick.dyer@itdev.co.uk>
Mon, 25 Apr 2016 21:18:52 +0000 (14:18 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 25 Apr 2016 21:27:57 +0000 (14:27 -0700)
commitf132b6746d48a5dc1891c8b747174b96d94d44dd
treed150da86ad97f0121d3ac936c147ea177a7aee8c
parenta8d3a109ed56fe9b082f12ab88e2b1ab4f895aad
Input: atmel_mxt_ts - use mxt_acquire_irq in mxt_soft_reset

If using IRQF_TRIGGER_FALLING, then there is a race here: if the reset
completes before we enable the IRQ, then CHG is already low and touch
will be broken.

This has been seen on Chromebook Pixel 2.

A workaround is to reconfig T18 COMMSCONFIG to enable the RETRIGEN bit
using mxt-app:
    mxt-app -W -T18 44
    mxt-app --backup

Tested-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Nick Dyer <nick.dyer@itdev.co.uk>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/atmel_mxt_ts.c