summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorChing-Kang Yen <chingkang@chromium.org>2021-03-23 12:15:12 +0800
committerCommit Bot <commit-bot@chromium.org>2021-03-29 19:07:47 +0000
commit31fd36d0340755327457172c81883b2ba0305a69 (patch)
treefefa7a8b0a33170f20001d1a68d98c810d3d177c /common
parent9bd7bf3c13c6e4670b78ef4a0d5135e61bdbe152 (diff)
downloadchrome-ec-31fd36d0340755327457172c81883b2ba0305a69.tar.gz
common: body_detection: using bypass_fifo flag
Originally, the body_detection will set MOTIONSENSE_SENSOR_FLAG_WAKEUP when changing state, which disable suspension of device. Thus, there was a commit [crrev.com/c/2631887] that just simply unset the MOTIONSENSE_SENSOR_FLAG_WAKEUP, which make body_detection not work properly. So, this commit will resolve the problem by setting the BYPASS_FIFO flag. BRANCH=None BUG=b:123434029 BUG=b:176399952 TEST=powerd_dbus_suspend # See if the device wake up after suspend TEST=make buildall; Signed-off-by: Ching-Kang Yen <chingkang@chromium.org> Change-Id: Ia911f4b27c15891d4e04eedbd524d019e0f334f0 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2780862 Commit-Queue: Ching-Kang Yen <chingkang@chromium.org> Tested-by: Ching-Kang Yen <chingkang@chromium.org> Reviewed-by: Gwendal Grignou <gwendal@chromium.org>
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..4fbc88e852 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 = MOTIONSENSE_SENSOR_FLAG_BYPASS_FIFO,
.activity_data = {
.activity = MOTIONSENSE_ACTIVITY_BODY_DETECTION,
.state = state,