summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Short <keithshort@chromium.org>2019-05-29 11:20:39 -0600
committerVadim Bendebury <vbendeb@chromium.org>2019-09-21 19:11:24 -0700
commit7143a51e0e4bb1eb1c9130017c29781ec6eff75e (patch)
tree7eccf8c6dd39ee9317b03949db60a114b925761e
parentde5eae8b652cbfaee25e8e160572b4592be7a80f (diff)
downloadchrome-ec-7143a51e0e4bb1eb1c9130017c29781ec6eff75e.tar.gz
cr50: Remove user presence check message.
Coreboot on Wilco now uses phyiscal presense checks from the Cr50 to confirm user actions. When booting to the recovery screen, the Cr50 console is flooded with "Presence: 0" messages. Demote the message to DBG images only and only if the user presense was detected. BUG=b:133266946 BRANCH=cr50 TEST=Build DBG and non DBG CR50 images on Wilco. Confirm the message flood is gone at the recovery screen. Change-Id: Ie6b08a386e9e479e61a6764dad8d4a3c9aa57f05 Signed-off-by: Keith Short <keithshort@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1638483 Reviewed-by: Vadim Bendebury <vbendeb@chromium.org> (cherry picked from commit 93a3f30e55e2ac5304a7cb66f24a76d51127e242) Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1657313 Tested-by: Vadim Bendebury <vbendeb@chromium.org> Commit-Queue: Vadim Bendebury <vbendeb@chromium.org> (cherry picked from commit c6de101996111514bcaa9f4b70cdfe8f56016ee7) Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1705728 (cherry picked from commit 6c3bce231b27364e3b82af3d1df1bbc8ea1a84ab)
-rw-r--r--board/cr50/u2f.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/board/cr50/u2f.c b/board/cr50/u2f.c
index a9989aa3fb..bf0bbb8791 100644
--- a/board/cr50/u2f.c
+++ b/board/cr50/u2f.c
@@ -43,7 +43,10 @@ enum touch_state pop_check_presence(int consume)
int recent = ((last_press.val > 0) &&
((get_time().val - last_press.val) < PRESENCE_TIMEOUT));
- CPRINTS("Presence:%d", recent);
+#ifdef CR50_DEV
+ if (recent)
+ CPRINTS("User presence: consumed %d", consume);
+#endif
if (consume)
last_press.val = 0;