summaryrefslogtreecommitdiff
path: root/driver/touchpad_st.c
diff options
context:
space:
mode:
authorWei-Han Chen <stimim@google.com>2018-11-07 16:00:15 +0800
committerchrome-bot <chrome-bot@chromium.org>2018-11-08 00:48:09 -0800
commita3aa19c41e1f0611d34188e93298bd26bca0df8f (patch)
treea33a017a2f9b4bd9c56c943f0c37ee8a1d5c42ef /driver/touchpad_st.c
parent600a960bbeb8269a47848169b59b1f6a219527f7 (diff)
downloadchrome-ec-a3aa19c41e1f0611d34188e93298bd26bca0df8f.tar.gz
touchpad_st: don't halt on error 0x24
BRANCH=nocturne BUG=b:118444760 TEST=local build and run on device Signed-off-by: Wei-Han Chen <stimim@chromium.org> Change-Id: Ie71d6e94009046f2a097b9a8ab0820959b35d610 Reviewed-on: https://chromium-review.googlesource.com/1322186 Commit-Ready: Wei-Han Chen <stimim@chromium.org> Tested-by: Wei-Han Chen <stimim@chromium.org> Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Diffstat (limited to 'driver/touchpad_st.c')
-rw-r--r--driver/touchpad_st.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/driver/touchpad_st.c b/driver/touchpad_st.c
index 43a66874be..9da9bc13cc 100644
--- a/driver/touchpad_st.c
+++ b/driver/touchpad_st.c
@@ -636,7 +636,8 @@ static void st_tp_handle_error(uint8_t error_type)
/*
* Suggest action: FW shall halt, consult ST.
*/
- if ((error_type >= 0x20 && error_type <= 0x25) ||
+ if ((error_type >= 0x20 && error_type <= 0x23) ||
+ error_type == 0x25 ||
(error_type >= 0x2E && error_type <= 0x46)) {
CPRINTS("tp shall halt");
tp_control |= TP_CONTROL_SHALL_HALT;