summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWei-Han Chen <stimim@google.com>2018-10-01 21:26:26 +0800
committerchrome-bot <chrome-bot@chromium.org>2018-10-04 00:36:56 -0700
commit68b430bef114ba021f751543a650e19d6fec2bdf (patch)
tree01f2330b68f6a472dfbcccc9b234a6f94fc9b143
parent0070c1a835dcf80c2e5978e2564fb5c1a229a2a5 (diff)
downloadchrome-ec-68b430bef114ba021f751543a650e19d6fec2bdf.tar.gz
touchpad_st: new error types: 0xf1, 0xf2, 0xf3
0xf1, 0xf2, 0xf3 are introduced since version 25.0. The suggested action is touchpad reset. BRANCH=nocturne BUG=b:113315759 TEST=manual on device Signed-off-by: Wei-Han Chen <stimim@chromium.org> Change-Id: I92842e28d6dc28fc1141e6232143f26f652971ac Reviewed-on: https://chromium-review.googlesource.com/1256305 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.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/driver/touchpad_st.c b/driver/touchpad_st.c
index 369e2f8230..1b304e1a3b 100644
--- a/driver/touchpad_st.c
+++ b/driver/touchpad_st.c
@@ -593,17 +593,18 @@ static void dump_memory(void)
static int st_tp_handle_error(uint8_t error_type)
{
- if (error_type <= 0x4E) {
- enable_deep_sleep(0);
- dump_error();
- dump_memory();
- enable_deep_sleep(1);
- }
+ enable_deep_sleep(0);
+ dump_error();
+ dump_memory();
+ enable_deep_sleep(1);
/*
* Suggest action: memory dump and power cycle.
*/
if (error_type <= 0x06 ||
+ error_type == 0xF1 ||
+ error_type == 0xF2 ||
+ error_type == 0xF3 ||
(error_type >= 0x47 && error_type <= 0x4E)) {
tp_control |= TP_CONTROL_SHALL_RESET;
return 1;