]> www.infradead.org Git - users/willy/xarray.git/commit
iio: imu: bmi270: fix initial sampling frequency configuration
authorGustavo Silva <gustavograzs@gmail.com>
Tue, 4 Mar 2025 18:01:02 +0000 (15:01 -0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 7 Apr 2025 18:32:48 +0000 (19:32 +0100)
commit6d03811d7a99e08d5928f58120acb45b8ba22b08
treea4823f9eee005e241a03a87b1d1b188953ab1282
parent0af2f6be1b4281385b618cb86ad946eded089ac8
iio: imu: bmi270: fix initial sampling frequency configuration

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.

Fixes: 3ea51548d6b2 ("iio: imu: Add i2c driver for bmi270 imu")
Signed-off-by: Gustavo Silva <gustavograzs@gmail.com>
Reviewed-by: Alex Lanzano <lanzano.alex@gmail.com>
Link: https://patch.msgid.link/20250304-bmi270-odr-fix-v1-1-384dbcd699fb@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/imu/bmi270/bmi270_core.c