linux-yocto/drivers/iio/imu
Jean-Baptiste Maneyrol 14b0d8e742 iio: imu: inv_icm42600: change invalid data error to -EBUSY
[ Upstream commit dfdc31e7ccf3ac1d5ec01d5120c71e14745e3dd8 ]

Temperature sensor returns the temperature of the mechanical parts
of the chip. If both accel and gyro are off, the temperature sensor is
also automatically turned off and returns invalid data.

In this case, returning -EBUSY error code is better then -EINVAL and
indicates userspace that it needs to retry reading temperature in
another context.

Fixes: bc3eb0207f ("iio: imu: inv_icm42600: add temperature sensor support")
Signed-off-by: Jean-Baptiste Maneyrol <jean-baptiste.maneyrol@tdk.com>
Cc: stable@vger.kernel.org
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Reviewed-by: Sean Nyekjaer <sean@geanix.com>
Link: https://patch.msgid.link/20250808-inv-icm42600-change-temperature-error-code-v1-1-986fbf63b77d@tdk.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
[ Adjust context ]
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-08-28 16:24:37 +02:00
..
bmi160
inv_icm42600 iio: imu: inv_icm42600: change invalid data error to -EBUSY 2025-08-28 16:24:37 +02:00
inv_mpu6050
st_lsm6dsx iio: imu: st_lsm6dsx: fix possible lockup in st_lsm6dsx_read_tagged_fifo 2025-05-18 08:20:37 +02:00
st_lsm9ds0
adis_buffer.c
adis_trigger.c
adis.c
adis16400.c
adis16460.c
adis16475.c
adis16480.c
fxos8700_core.c
fxos8700_i2c.c
fxos8700_spi.c
fxos8700.h
Kconfig
kmx61.c iio: imu: kmx61: fix information leak in triggered buffer 2025-01-23 17:15:55 +01:00
Makefile