summaryrefslogtreecommitdiff
path: root/driver
diff options
context:
space:
mode:
authorWei-Han Chen <stimim@google.com>2018-11-07 16:03:48 +0800
committerchrome-bot <chrome-bot@chromium.org>2018-11-08 00:48:09 -0800
commit3f487a8882fc4095b98b10d8ce9e6b71254d27c2 (patch)
tree19c38c54391c9fe5f77b88cf4f6dfc26088238df /driver
parenta3aa19c41e1f0611d34188e93298bd26bca0df8f (diff)
downloadchrome-ec-3f487a8882fc4095b98b10d8ce9e6b71254d27c2.tar.gz
touchpad_st: remove beacon count logs
Currently, beacon count is logged every second. Suppress the log and only print errors when beacon count is frozen. BRANCH=nocturne BUG=None TEST=manual on whiskers Signed-off-by: Wei-Han Chen <stimim@chromium.org> Change-Id: I20eb992b5f006f425bb5a94bad8e0e5b3015a7ac Reviewed-on: https://chromium-review.googlesource.com/1322187 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')
-rw-r--r--driver/touchpad_st.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/driver/touchpad_st.c b/driver/touchpad_st.c
index 9da9bc13cc..3faf37828b 100644
--- a/driver/touchpad_st.c
+++ b/driver/touchpad_st.c
@@ -716,12 +716,15 @@ static void st_tp_handle_status_report(struct st_tp_event_t *e)
* Resetting touchpad should be the correct action.
*/
if (e->report.report_type == ST_TP_STATUS_BEACON) {
+#if 0
const uint8_t touch_count = e->report.reserved;
CPRINTS("BEACON: idle count=%08x", info);
CPRINTS(" touch count=%d touch slot=%04x",
touch_count, touch_slot);
+#endif
if (prev_idle_count == info && touch_slot == 0) {
+ CPRINTS(" idle count=%08x not changed", info);
tp_control |= TP_CONTROL_SHALL_RESET;
return;
}