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)
commiteb43335c409543506dd84b59f5c6bdd35cecf2c7
treed150da86ad97f0121d3ac936c147ea177a7aee8c
parent6984ab1ab35f422292b7781c65284038bcc0f6a6
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