diff options
author | Varad Gokhale <gokv@google.com> | 2022-12-06 01:00:47 +0000 |
---|---|---|
committer | Varad Gokhale <gokv@google.com> | 2022-12-15 19:00:55 +0000 |
commit | 0b1011718f38e59be752b3606f204363d074eb19 (patch) | |
tree | 85f7b70ea67956ebfec288c923c4c3d71a63b737 | |
parent | 4c529b652ceca43e6a8b28dca4924e4185dc45e0 (diff) | |
download | goodix_touch-0b1011718f38e59be752b3606f204363d074eb19.tar.gz |
touch/goodix: logging for watchdog timer reset
Add log to detect unexpected touch-ic watchdog timer reset
Bug: 260970679
Change-Id: I0ccc66e973283fa450bfe2ff4a1899f5d2587298
Signed-off-by: Varad Gokhale <gokv@google.com>
-rw-r--r-- | goodix_brl_hw.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/goodix_brl_hw.c b/goodix_brl_hw.c index c423674..9b0d384 100644 --- a/goodix_brl_hw.c +++ b/goodix_brl_hw.c @@ -1229,10 +1229,15 @@ static int brl_event_handler( ts_event->event_type = EVENT_INVALID; ts_event->clear_count = event_data->clear_count; /* read status event */ - if (event_data->status_changed) + if (event_data->status_changed) { hw_ops->read(cd, 0x1021C, (u8 *)&ts_event->status_data, sizeof(ts_event->status_data)); + if (ts_event->status_data.soft_reset_type == 0x04) { + ts_info("Touch - unexpected reset! Reason : WDT"); + } + } + if (event_data->type & (GOODIX_TOUCH_EVENT >> 4)) return goodix_touch_handler(cd, ts_event, (struct goodix_ts_touch_event_data *)event_data); |