]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: imu: inv_icm42600: fix odr switch to the same value
authorJean-Baptiste Maneyrol <jean-baptiste.maneyrol@tdk.com>
Fri, 30 Jan 2026 15:38:47 +0000 (16:38 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 23 Feb 2026 08:24:37 +0000 (08:24 +0000)
commitc9f3a593137d862d424130343e77d4b5260a4f5a
treed15b2be2a1978dc1d5acf18e24f4a91eb9bded80
parent6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f
iio: imu: inv_icm42600: fix odr switch to the same value

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 to the same odr value, we end up waiting for a
FIFO ODR flag that is never happening.

Fix the issue by doing nothing and exiting properly when we are
switching to the same ODR value.

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_accel.c
drivers/iio/imu/inv_icm42600/inv_icm42600_gyro.c