ENGR00224171 evk : Touch screen has no response after resumeimx-android-r13.5-beta
commit0ccf1609f3d00d1f3d093a621969379e2fc46346
authorLiGang <b41990@freescale.com>
Fri, 14 Sep 2012 05:31:24 +0000 (14 13:31 +0800)
committerLiGang <b41990@freescale.com>
Fri, 14 Sep 2012 05:31:24 +0000 (14 13:31 +0800)
treeae01636d9793c3f1ce497669e1e34ad6ce593cec
parent559073d213f793985151bec2b65c54b2613e489e
ENGR00224171 evk : Touch screen has no response after resume

System is triggered by falling edge of touch interrupt pin, and the touch can't
power off during suspend, so if touch the screen during suspend, the touch
interrupt pin will changed to low status, but system can't response the falling
edge interrupt for it's in suspend, then the touch interrupt pin will stay low
status. After resume, the system will not accept any falling edge interrpt from
touch, that leads the touch no response after resume.
The solution here is:  in later resume, read the touch data if the interrupt
pin of touch is low status, then the interrupt pin of touch will return to high
after reading the touch data.

Signed-off-by: LiGang <b41990@freescale.com>
drivers/input/touchscreen/elan_ts.c