]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
iio: imu: inv_icm42600: fix odr switch when turning buffer off
authorJean-Baptiste Maneyrol <jean-baptiste.maneyrol@tdk.com>
Fri, 30 Jan 2026 16:10:23 +0000 (17:10 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 23 Feb 2026 08:24:37 +0000 (08:24 +0000)
commitffd32db8263d2d785a2c419486a450dc80693235
tree8361f42ac051491108361e08da9b71bd848da124
parentc9f3a593137d862d424130343e77d4b5260a4f5a
iio: imu: inv_icm42600: fix odr switch when turning buffer off

ODR switch is done in 2 steps when FIFO is on : change the ODR register
value and acknowledge change when reading the FIFO ODR change flag.
When we are switching odr and turning buffer off just afterward, we are
losing the FIFO ODR change flag and ODR switch is blocked.

Fix the issue by force applying any waiting ODR change when turning
buffer off.

Fixes: ec74ae9fd37c ("iio: imu: inv_icm42600: add accurate timestamping")
Signed-off-by: Jean-Baptiste Maneyrol <jean-baptiste.maneyrol@tdk.com>
Cc: stable@vger.kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/imu/inv_icm42600/inv_icm42600_buffer.c