linux/drivers/iio/imu/inv_icm42600
Jean-Baptiste Maneyrol dfdc31e7cc iio: imu: inv_icm42600: change invalid data error to -EBUSY
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>
2025-08-11 21:35:01 +01:00
..
Kconfig iio: move inv_icm42600 timestamp module in common 2023-07-20 19:21:28 +01:00
Makefile iio: move inv_icm42600 timestamp module in common 2023-07-20 19:21:28 +01:00
inv_icm42600.h iio: imu: inv_icm42600: add wakeup functionality for Wake-on-Motion 2025-07-14 19:20:51 +01:00
inv_icm42600_accel.c iio: imu: inv_icm42600: add wakeup functionality for Wake-on-Motion 2025-07-14 19:20:51 +01:00
inv_icm42600_buffer.c iio: imu: inv_icm42600: add WoM support 2025-07-14 19:20:51 +01:00
inv_icm42600_buffer.h iio: imu: inv_icm42600: Convert to uXX and sXX integer types 2025-06-26 19:32:57 +01:00
inv_icm42600_core.c iio: imu: inv_icm42600: add wakeup functionality for Wake-on-Motion 2025-07-14 19:20:51 +01:00
inv_icm42600_gyro.c iio: imu: inv_icm42600: Convert to uXX and sXX integer types 2025-06-26 19:32:57 +01:00
inv_icm42600_i2c.c iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
inv_icm42600_spi.c iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
inv_icm42600_temp.c iio: imu: inv_icm42600: change invalid data error to -EBUSY 2025-08-11 21:35:01 +01:00
inv_icm42600_temp.h iio: imu: inv_icm42600: add temperature sensor support 2020-06-27 14:20:16 +01:00