Re: [PATCH] iio: imu: inv_icm42600: fix odr change not caught in certain cases
From: Jonathan Cameron
Date: Sun Sep 06 2026 - 14:08:48 EST
On Thu, 03 Sep 2026 21:37:13 +0200
Jean-Baptiste Maneyrol via B4 Relay <devnull+jean-baptiste.maneyrol.tdk.com@xxxxxxxxxx> wrote:
> From: Jean-Baptiste Maneyrol <jean-baptiste.maneyrol@xxxxxxx>
>
> When using both accel and gyro with different frequencies, the ODR
> change flag in the FIFO header can be sometime in a packet with
> invalid data. Since we are ignoring these packets, we miss the ODR
> change and any further change are blocked until sensor is turned off.
>
> Fix this by moving the packet data validity check after the ODR change
> flag check.
>
> Fixes: ec74ae9fd37c ("iio: imu: inv_icm42600: add accurate timestamping")
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Jean-Baptiste Maneyrol <jean-baptiste.maneyrol@xxxxxxx>
Applied to the fixes-togreg branch of iio.git.
Thanks,
Jonathan