summaryrefslogtreecommitdiff
path: root/include/motion_sense.h
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2015-07-23 13:45:35 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-07-27 22:19:26 +0000
commit34677eed4e3c93bbb25d1c7ce4e55288e6ab4bba (patch)
treef69d012ddde21e68a9fe2dee17dd6982a9e54413 /include/motion_sense.h
parent324a2716d4da7efbe014c8dceb6df0a16c792eea (diff)
downloadchrome-ec-34677eed4e3c93bbb25d1c7ce4e55288e6ab4bba.tar.gz
motion_sense: Fix init routines
active state is global, remove it from motion_sensor structure. Reinit sensors when entering RW, fix regression introduced by CL:284616. Improve EC polling rate calculation by excluding suspended sensors. Wake up sensor thread in case the motion task was in deep sleep. Do not send sense interrupt while suspened. Will revisit once wakeup sensors are implemented. BRANCH=smaug TEST=Check when in RW the sensors are exposed. Check EC rate are correct in different power state. Check when jumping from RO to RW and back, after setting the frequencies parameters via sysfs properly, AndroSensor acquires the data properly. BUG=chrome-os-partner:43132,chrome-os-partner:40741 Change-Id: Ie70732b135a432d64935eead4200ddc0e1a7c0b4 Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/288201 Reviewed-by: Alec Berg <alecaberg@chromium.org>
Diffstat (limited to 'include/motion_sense.h')
-rw-r--r--include/motion_sense.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/motion_sense.h b/include/motion_sense.h
index 82a492719c..8233049565 100644
--- a/include/motion_sense.h
+++ b/include/motion_sense.h
@@ -80,7 +80,6 @@ struct motion_sensor_t {
/* state parameters */
enum sensor_state state;
- enum chipset_state_mask active;
vector_3_t raw_xyz;
vector_3_t xyz;