summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorChing-Kang Yen <chingkang@chromium.org>2021-01-15 11:57:04 +0800
committerCommit Bot <commit-bot@chromium.org>2021-01-16 07:30:16 +0000
commitbca7737997eecb517dbbc94fd95d034f0f5cde56 (patch)
tree045d1a515bb96c38e44ddbcf827902901038dbce /common
parent90fb419886644533d3a5a083dbafbb7ec7038301 (diff)
downloadchrome-ec-bca7737997eecb517dbbc94fd95d034f0f5cde56.tar.gz
common: body_detection: prevent AP from unexpected waking up
Current body_detection will make AP resume after enter S3. Cause the AP wake up in a short time after suspend. This CL will prevent this from happening. BRANCH=None BUG=b:176399952 TEST=powerd_dbus_suspend # See if the device wake up after suspend Signed-off-by: Ching-Kang Yen <chingkang@chromium.org> Change-Id: Id208800a66e4e2d433a555210ece50af85c908ec Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2631887 Reviewed-by: Wai-Hong Tam <waihong@google.com>
Diffstat (limited to 'common')
-rw-r--r--common/body_detection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/body_detection.c b/common/body_detection.c
index 34257dd633..d9a99ba5f2 100644
--- a/common/body_detection.c
+++ b/common/body_detection.c
@@ -97,7 +97,7 @@ void body_detect_change_state(enum body_detect_states state, bool spoof)
return;
if (IS_ENABLED(CONFIG_GESTURE_HOST_DETECTION)) {
struct ec_response_motion_sensor_data vector = {
- .flags = MOTIONSENSE_SENSOR_FLAG_WAKEUP,
+ .flags = 0,
.activity_data = {
.activity = MOTIONSENSE_ACTIVITY_BODY_DETECTION,
.state = state,