diff options
author | Ching-Kang Yen <chingkang@chromium.org> | 2021-02-26 08:31:11 +0000 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-03-29 19:07:39 +0000 |
commit | 9bd7bf3c13c6e4670b78ef4a0d5135e61bdbe152 (patch) | |
tree | a124130ea499f5c4b1f33e41e83fe1ab38aadf5c | |
parent | 4c84afb1cdb1d1da8155f1bc30ea93ecd7b8dd4b (diff) | |
download | chrome-ec-9bd7bf3c13c6e4670b78ef4a0d5135e61bdbe152.tar.gz |
Revert "common: body_detection: prevent AP from unexpected waking up"
This reverts commit bca7737997eecb517dbbc94fd95d034f0f5cde56.
Reason for revert: This commit is just a workaround, and causes another
problem. The actual fix will be in the following commit.
Original change's description:
> 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>
BRANCH=None
BUG=b:176399952
TEST=None
Cq-Depend: chromium:2780862
Signed-off-by: Ching-Kang Yen <chingkang@chromium.org>
Change-Id: I904ff718ff41336dca3c85c99a424a69483740f5
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2721328
Reviewed-by: Wai-Hong Tam <waihong@google.com>
Reviewed-by: Gwendal Grignou <gwendal@chromium.org>
-rw-r--r-- | common/body_detection.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/body_detection.c b/common/body_detection.c index d9a99ba5f2..34257dd633 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 = 0, + .flags = MOTIONSENSE_SENSOR_FLAG_WAKEUP, .activity_data = { .activity = MOTIONSENSE_ACTIVITY_BODY_DETECTION, .state = state, |