summaryrefslogtreecommitdiff
path: root/driver/touchpad_st.c
diff options
context:
space:
mode:
authorWei-Han Chen <stimim@google.com>2018-10-03 15:16:17 +0800
committerchrome-bot <chrome-bot@chromium.org>2018-10-04 17:09:08 -0700
commitf188caf7a5b4f08d1e7e1a4a5fd847d7f9897e36 (patch)
tree92ff6dce4a8190dd89393fe94f138bad7ee1cc84 /driver/touchpad_st.c
parent31fe290061fdf9d1b0e8a634c77cb7a30b2f012b (diff)
downloadchrome-ec-f188caf7a5b4f08d1e7e1a4a5fd847d7f9897e36.tar.gz
touchpad_st: read event fifo in heatmap mode
Beacon and error events are still available in heatmap mode. BRANCH=nocturne BUG=None TEST=manual on device Signed-off-by: Wei-Han Chen <stimim@chromium.org> Change-Id: I6ac2e20f62bedf7084edb567765fd5b5fe7ae800 Reviewed-on: https://chromium-review.googlesource.com/1258689 Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com> 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.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/driver/touchpad_st.c b/driver/touchpad_st.c
index efc7d2621b..01920b3778 100644
--- a/driver/touchpad_st.c
+++ b/driver/touchpad_st.c
@@ -1415,6 +1415,10 @@ static int st_tp_read_frame(void)
uint8_t *rx_buf = usb_packet[spi_buffer_index & 1].frame;
#endif
+ ret = st_tp_read_all_events(0);
+ if (ret < 0)
+ goto failed;
+
if (heat_map_addr < 0)
goto failed;