]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
iio: chemical: bme680: Fix measurement wait duration calculation
authorChris Spencer <spencercw@gmail.com>
Thu, 5 Feb 2026 14:55:45 +0000 (14:55 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 23 Feb 2026 08:24:38 +0000 (08:24 +0000)
commitf55b9510cd9437da3a0efa08b089caeb47595ff1
tree9777bba3aeb62e7bd427b69c1743efc0568a4c34
parent5187e03b817c26c1c3bcb2645a612ea935c4be89
iio: chemical: bme680: Fix measurement wait duration calculation

This function refers to the Bosch BME680 API as the source of the
calculation, but one of the constants does not match the Bosch
implementation. This appears to be a simple transposition of two digits,
resulting in a wait time that is too short. This can cause the following
'device measurement cycle incomplete' check to occasionally fail, returning
EBUSY to user space.

Adjust the constant to match the Bosch implementation and resolve the EBUSY
errors.

Fixes: 4241665e6ea0 ("iio: chemical: bme680: Fix sensor data read operation")
Link: https://github.com/boschsensortec/BME68x_SensorAPI/blob/v4.4.8/bme68x.c#L521
Signed-off-by: Chris Spencer <spencercw@gmail.com>
Acked-by: Vasileios Amoiridis <vassilisamir@gmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/chemical/bme680_core.c