]> 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)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:13:15 +0000 (14:13 +0200)
commit9da49f92a5746b1c3767b975766364f97b4c1aec
tree8603a61654a5ad788e7480e5d44fe0b66bd2ba42
parent82e21b732a1fb588a6a14285a93c80c35995fb5a
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