Re: [PATCH] iio: inv_sensors: do not compute period estimation when updating odr
From: Jonathan Cameron
Date: Sun Oct 25 2026 - 22:37:30 EST
On Tue, 20 Oct 2026 18:28:47 +0200
Jean-Baptiste Maneyrol via B4 Relay <devnull+jean-baptiste.maneyrol.tdk.com@xxxxxxxxxx> wrote:
> From: Jean-Baptiste Maneyrol <jean-baptiste.maneyrol@xxxxxxx>
>
> When odr is updated, the delta between the interrupts will change and it
> will lead to a bad period estimation.
>
> Avoid this by preventing the period estimation in this case.
>
> Fixes: 82bd09ce4fd3 ("iio: inv_sensors: improve period measurement by using a longer delay")
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Jean-Baptiste Maneyrol <jean-baptiste.maneyrol@xxxxxxx>
Applied to the fixes-togreg branch of iio.git.