diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2021-09-20 23:36:51 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-09-23 03:17:51 +0000 |
commit | ebf5206417d03688db999eb05721b243ac1e6a1e (patch) | |
tree | eaa466206b0287ac0a9de925f3bee206d11730d7 /driver/accelgyro_bmi3xx.c | |
parent | 21a2d516bf80e006b738ffb9401b388945ee5086 (diff) | |
download | chrome-ec-ebf5206417d03688db999eb05721b243ac1e6a1e.tar.gz |
Revert "driver: bmi3xx: Set FIFO watermark to 6 words"
This reverts commit 5786cdd32f9d8ba7da8b2d9764b06dfeb991f5ff.
FIFO is not always 6 words: When the gyroscope is disabled,
the FIFO will only contains 3 words.
BUG=b:178398789,b:195264765
BRANCH=none
TEST=Compile
Cq-Depend: chromium:3170618
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Change-Id: I1cc0f6e31bb06a2ea11a815ea1f360766fb5d474
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3172267
Reviewed-by: Diana Z <dzigterman@chromium.org>
Reviewed-by: Rob Barnes <robbarnes@google.com>
Diffstat (limited to 'driver/accelgyro_bmi3xx.c')
-rw-r--r-- | driver/accelgyro_bmi3xx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/driver/accelgyro_bmi3xx.c b/driver/accelgyro_bmi3xx.c index 90641a209e..947796728c 100644 --- a/driver/accelgyro_bmi3xx.c +++ b/driver/accelgyro_bmi3xx.c @@ -170,7 +170,7 @@ static int config_interrupt(const struct motion_sensor_t *s) goto err_unlock; /* Set FIFO water-mark to read data whenever available */ - reg_data[0] = 6; + reg_data[0] = 1; reg_data[1] = 0; ret = bmi3_write_n(s, BMI3_REG_FIFO_WATERMARK, reg_data, 2); |