diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2021-12-09 23:06:18 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-12-14 17:57:44 +0000 |
commit | c962696e84ca2e6a5e2c86693ea66076a709f264 (patch) | |
tree | 9149951d3df1d758d8013bdcf0ab6af3c001ee90 /board/kracko | |
parent | 6d7d95a74a27724ca0c512f0ab6ab9d5f3d80fa1 (diff) | |
download | chrome-ec-c962696e84ca2e6a5e2c86693ea66076a709f264.tar.gz |
motion_sensor: Remove |int_signal| field
|int_signal| was used to check interrupt signal to
protect from interrupt coming while processing FIFO.
Instead, use loop until all FIFO samples are processed,
as used in linux kernel sensor fifo routine.
[See for example see st_lsm6dsx_handler_thread() in
driver/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c].
BUG=b:207055975,b:129159505
BRANCH="asurada atlas chameleon dedede drallion endeavour fpmcu grunt
hatch icarus kalista keeby kukui mistral nami nocturne octopus poppy
puff quiche rammus sarien trogdor volteer zork"
TEST=testall, both cros_ec and zephyr.
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Change-Id: I3cfd63c73a7361522ddf42a686dcffdac38d8741
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3328808
Reviewed-by: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'board/kracko')
-rw-r--r-- | board/kracko/board.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/board/kracko/board.c b/board/kracko/board.c index 99dcd56810..566ecdf3b4 100644 --- a/board/kracko/board.c +++ b/board/kracko/board.c @@ -364,8 +364,6 @@ struct motion_sensor_t motion_sensors[] = { .mutex = &g_base_mutex, .drv_data = LSM6DSM_ST_DATA(lsm6dsm_data, MOTIONSENSE_TYPE_ACCEL), - .int_signal = GPIO_BASE_SIXAXIS_INT_L, - .flags = MOTIONSENSE_FLAG_INT_SIGNAL, .port = I2C_PORT_SENSOR, .i2c_spi_addr_flags = LSM6DSM_ADDR0_FLAGS, .rot_standard_ref = &base_standard_ref, @@ -393,8 +391,6 @@ struct motion_sensor_t motion_sensors[] = { .mutex = &g_base_mutex, .drv_data = LSM6DSM_ST_DATA(lsm6dsm_data, MOTIONSENSE_TYPE_GYRO), - .int_signal = GPIO_BASE_SIXAXIS_INT_L, - .flags = MOTIONSENSE_FLAG_INT_SIGNAL, .port = I2C_PORT_SENSOR, .i2c_spi_addr_flags = LSM6DSM_ADDR0_FLAGS, .default_range = 1000 | ROUND_UP_FLAG, /* dps */ |