From 4c84afb1cdb1d1da8155f1bc30ea93ecd7b8dd4b Mon Sep 17 00:00:00 2001 From: Gwendal Grignou Date: Mon, 22 Mar 2021 17:30:39 -0700 Subject: common: motion_sense: Prevent on/off body from waking up device Introduce a new flag: BYPASS_FIFO to raise an interrupt to the AP when an event is sent. It is not as strong as WAKEUP, as it does not wake up the AP. BYPASS_FIFO must be set when WAKEUP is set. It is applied to sync sensor as well as gesture/activity sensor. BUG=b:123434029 BRANCH=trogdor TEST=Compile Signed-off-by: Gwendal Grignou Change-Id: Id5aba71e6d11ef31f7fa2c67ba2e07178d088b1b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2780834 Reviewed-by: Ching-Kang Yen Tested-by: Ching-Kang Yen Commit-Queue: Ching-Kang Yen --- test/motion_sense_fifo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/motion_sense_fifo.c b/test/motion_sense_fifo.c index 09d3404032..28e7a3019a 100644 --- a/test/motion_sense_fifo.c +++ b/test/motion_sense_fifo.c @@ -348,7 +348,7 @@ void before_test(void) motion_sense_fifo_commit_data(); motion_sense_fifo_read(sizeof(data), CONFIG_ACCEL_FIFO_SIZE, &data, &data_bytes_read); - motion_sense_fifo_reset_wake_up_needed(); + motion_sense_fifo_reset_needed_flags(); memset(data, 0, sizeof(data)); motion_sense_fifo_reset(); } -- cgit v1.2.1