[PORT FROM R2] atmel_mxt224: restore power config during resume
authorHong Liu <hong.liu@intel.com>
Tue, 31 Jan 2012 02:21:43 +0000 (10:21 +0800)
committerbuildbot <buildbot@intel.com>
Wed, 8 Feb 2012 01:36:53 +0000 (17:36 -0800)
commit77634c6b7a91b18da63c480816c02f794eca09d4
tree142f11910858ae9d647d7fafd56856d06d66d6c2
parentb3a782cddf48d2ffe3c0f5910ac6218334fb2f11
[PORT FROM R2] atmel_mxt224: restore power config during resume

BZ: 19465

If we put palm/face on screen during touch resume, touch may send
multi-point touch data to driver before it performs a reset. Then after
reset, all touch state will be cleared in touch firmware, and it will
not report finger lift for the 2nd finger. This causes driver always report
multi-touch data (2 points in our driver config) for singer finger operation.
For apps don't support multi-touch operation (like phone app), it looks like
touch is dead at that time.

Fixed by do a power config restoration and then do manual calibration instead
of doing a soft reset during late resume.

Change-Id: Iba3f67debd2486d6830298dd87a8c2368e8fa520
Orig-Change-Id: I710e75bfab5170ee7a91029db28c8da3d1fa6115
Signed-off-by: Hong Liu <hong.liu@intel.com>
Reviewed-on: http://android.intel.com:8080/34008
Reviewed-by: Cai, Stanley W <stanley.w.cai@intel.com>
Tested-by: Wang, Zhifeng <zhifeng.wang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/input/touchscreen/atmel_mxt224.c