diff options
author | lancangyi <1163369458@qq.com> | 2018-07-24 18:13:45 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-07-26 04:07:51 -0700 |
commit | b5991cab2575a89e34bc1602e4233ca1819d2ee8 (patch) | |
tree | 24c2a8393b83c76683bb52f521cbfbc0cdaf8a25 /board/phaser | |
parent | 4201931efe7fd413ae7a02b12d5f6c8e5709771f (diff) | |
download | chrome-ec-b5991cab2575a89e34bc1602e4233ca1819d2ee8.tar.gz |
Phaser: the XYZ value of base sensor is unconverted after opening lid(system back from s5 state)
Base sensor driver (lsm6dsm) will not call API config_interrupt() when active_mask configed as SENSOR_ACTIVE_S0_S3_S5 after opening lid, and offset 0x0d(INT1_CTRL) don't be configed in fact. It is
better to config active_mask as SENSOR_ACTIVE_S0_S3.
BUG=b:111727977
BRANCH=none
TEST=close lid and then open lid, the XYZ value of base sensor is unconverted with 'watch -n 0.5 ectool motionsense' in VT2.
Change-Id: I53efdfc22f100a9a2c6d41336a9cf5f33eb273a3
Reviewed-on: https://chromium-review.googlesource.com/1148179
Commit-Ready: Xiong Huang <xiong.huang@bitland.corp-partner.google.com>
Tested-by: Xiong Huang <xiong.huang@bitland.corp-partner.google.com>
Reviewed-by: Chao Ding <chao.ding@bitland.corp-partner.google.com>
Reviewed-by: Jett Rink <jettrink@chromium.org>
Reviewed-by: Paul Ma <magf@bitland.corp-partner.google.com>
Diffstat (limited to 'board/phaser')
-rw-r--r-- | board/phaser/board.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/phaser/board.c b/board/phaser/board.c index 411a80b312..e5571c3787 100644 --- a/board/phaser/board.c +++ b/board/phaser/board.c @@ -155,7 +155,7 @@ struct motion_sensor_t motion_sensors[] = { [BASE_ACCEL] = { .name = "Base Accel", - .active_mask = SENSOR_ACTIVE_S0_S3_S5, + .active_mask = SENSOR_ACTIVE_S0_S3, .chip = MOTIONSENSE_CHIP_LSM6DSM, .type = MOTIONSENSE_TYPE_ACCEL, .location = MOTIONSENSE_LOC_BASE, |