]> git.baikalelectronics.ru Git - kernel.git/commit
iio: imu: st_lsm6dsx: track hw FIFO buffering with fifo_mask
authorLorenzo Bianconi <lorenzo@kernel.org>
Thu, 28 Nov 2019 15:42:30 +0000 (17:42 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 8 Dec 2019 18:10:30 +0000 (18:10 +0000)
commit5495bad3a48ccd9140b688e7088db5107082ea8d
tree7d2bc606473667064f8d5f5e1b6a4e8e211ed969
parent88e575218608ba5a2d1ca3ed128ca4ac6e2c0742
iio: imu: st_lsm6dsx: track hw FIFO buffering with fifo_mask

Track hw FIFO state introducing fifo_mask since now the accel sensor
can be enabled during suspend/resume in order to trigger the wake-up
enabling the FIFO in st_lsm6dsx_resume even if it was disabled before
the suspend.  Hence we must separately track the fifo state.

Fixes: 2831ba84ecb8 ("iio: imu: st_lsm6dsx: add wakeup-source option")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Tested-by: Sean Nyekjaer <sean@geanix.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c