]> xenbits.xensource.com Git - people/aperard/linux-chromebook.git/commit
CHROMIUM: Input: atmel_mxt_ts - Set T9 in mxt_resume based on lid state
authorBenson Leung <bleung@chromium.org>
Mon, 28 Jan 2013 23:26:25 +0000 (15:26 -0800)
committerBenson Leung <bleung@chromium.org>
Tue, 29 Jan 2013 06:11:38 +0000 (22:11 -0800)
commit8e14963ec7b200d0500c3e18ac606ccf6becfc3a
tree1c21c4ade5877e8e44d128f000cd7c069ccfbb3e
parentaab92164d22625f84bdd256540fc66888489f8d3
CHROMIUM: Input: atmel_mxt_ts - Set T9 in mxt_resume based on lid state

This is an x86 specific change for the short term.
When the lid is closed on resume, make sure T9 is disabled.
to prevent the lid from affecting the touch device and causing
stray touches. If lid is open, restore operational settings for T9.

Signed-off-by: Benson Leung <bleung@chromium.org>
BUG=chrome-os-partner:17465
TEST=Close the lid to suspend in guest mode.
Open the lid slowly, until you see the lights indicating resuming.
Close the lid immediately upon seeing the system resume from
the status light.
The system should stay in S0. Check via ssh:
cat /sys/kernel/debug/atmel_mxt_ts/2-004a/object
Check that T9 is 0x00.
On a normal suspend/resume, where the lid is opened,
check that touch device is functional.

Change-Id: I8b671c5926f510228af6327985b2c6717d226c1a
Reviewed-on: https://gerrit.chromium.org/gerrit/42184
Reviewed-by: Puneet Kumar <puneetster@chromium.org>
Commit-Queue: Benson Leung <bleung@chromium.org>
Tested-by: Benson Leung <bleung@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/42214
Reviewed-by: Danielle Drew <ddrew@chromium.org>
drivers/input/touchscreen/atmel_mxt_ts.c