]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00227890 ts: fix elan touch screen gets no response upon suspend/resume
authorRobby Cai <R63905@freescale.com>
Thu, 11 Oct 2012 09:18:15 +0000 (17:18 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:35:35 +0000 (08:35 +0200)
commit3a01b578f959687872eca32fa693eb53b606029e
tree8603a61654a5ad788e7480e5d44fe0b66bd2ba42
parente518e716c6fed2f396ac65804786ec03c28b3e29
ENGR00227890 ts: fix elan touch screen gets no response upon suspend/resume

To reproduce:
1. let system enter suspend mode
2. touch the screen
3. after the system resumes, touch screen does not respond again.

The cause:
The touch screen interrupt is triggered by falling edge. During suspend stage,
once the screen has ever been touched, then the interrupt line will be always
pulled low. Since elan ts chip is always powered on and the interrupt gets no
chance to be handled during suspend stage, the interrupt line can not recover
to high to detect a new one.

Workaround:
Read out the pending data to make the touch screen come back alive.

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