Re: [PATCH] iio: imu: bmi270: fix initial sampling frequency configuration

From: Jonathan Cameron
Date: Sat Mar 08 2025 - 09:56:07 EST


On Wed, 5 Mar 2025 21:11:54 -0300
Gustavo Silva <gustavograzs@xxxxxxxxx> wrote:

> On Wed, Mar 05, 2025 at 02:49:28PM +0000, Jonathan Cameron wrote:
> > On Tue, 04 Mar 2025 15:01:02 -0300
> > Gustavo Silva <gustavograzs@xxxxxxxxx> wrote:
> >
> > > In the bmi270_configure_imu() function, the accelerometer and gyroscope
> > > configuration registers are incorrectly written with the mask
> > > BMI270_PWR_CONF_ADV_PWR_SAVE_MSK, which is unrelated to these registers.
> > >
> > > As a result, the accelerometer's sampling frequency is set to 200 Hz
> > > instead of the intended 100 Hz.
> > >
> > > Remove the mask to ensure the correct bits are set in the configuration
> > > registers.
> > >
> > > Signed-off-by: Gustavo Silva <gustavograzs@xxxxxxxxx>
> >
> > Hi Gustavo,
> >
> > Please reply to this thread with a suitable fixes tag.
> >
> > Thanks,
> >
> > Jonathan
> >
>
> Fixes: 3ea51548d6b2 ("iio: imu: Add i2c driver for bmi270 imu")

Thanks. Applied to the fixes-togreg branch of iio.git.
Given where we are in the cycle I might just drag this into the pull
request for the next merge window.

Jonathan