summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWei-Han Chen <stimim@google.com>2018-10-11 06:09:09 +0800
committerchrome-bot <chrome-bot@chromium.org>2018-10-11 13:25:45 -0700
commit125ca6432b09156967bdfa62aa5af6f91ab2cc6c (patch)
tree1d12bba76f26d24c19ec5925cbba7ee4c9cae828
parent399bc14a001e2e12c158233081948f10ef885f6d (diff)
downloadchrome-ec-125ca6432b09156967bdfa62aa5af6f91ab2cc6c.tar.gz
touchpad_st: touch_slot should be reset to 0
When we recover from touchpad error by resetting the touchpad, after TP reset, "touch_slot" should be reset to 0. BRANCH=nocturne BUG=b:117568885 TEST=manual on whiskers Signed-off-by: Wei-Han Chen <stimim@chromium.org> Change-Id: I4dad1b2ad28885e376023d5e5274485aaa852ac3 Reviewed-on: https://chromium-review.googlesource.com/1274685 Commit-Ready: Wei-Han Chen <stimim@chromium.org> Tested-by: Wei-Han Chen <stimim@chromium.org> Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
-rw-r--r--driver/touchpad_st.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/driver/touchpad_st.c b/driver/touchpad_st.c
index 9e6b08f909..9cfb461d47 100644
--- a/driver/touchpad_st.c
+++ b/driver/touchpad_st.c
@@ -812,6 +812,7 @@ static void st_tp_init(void)
system_state = 0;
tp_control &= ~TP_CONTROL_RESETTING;
+ touch_slot = 0;
touchpad_power_control();
}