linux-stable/drivers/iio/imu
Tong Zhang 9e4dedb8ec iio:imu:bmi160: disable regulator in error path
[ Upstream commit d926054d55 ]

Regulator should be disabled in error path as mentioned in _regulator_put().
Also disable accel if gyro cannot be enabled.

[   16.233604] WARNING: CPU: 0 PID: 2177 at drivers/regulator/core.c:2257 _regulator_put
[   16.240453] Call Trace:
[   16.240572]  <TASK>
[   16.240676]  regulator_put+0x26/0x40
[   16.240853]  regulator_bulk_free+0x26/0x50
[   16.241050]  release_nodes+0x3f/0x70
[   16.241225]  devres_release_group+0x147/0x1c0
[   16.241441]  ? bmi160_core_probe+0x175/0x3a0 [bmi160_core]

Fixes: 5dea3fb066 ("iio: imu: bmi160: added regulator support")
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Tong Zhang <ztong0001@gmail.com>
Link: https://lore.kernel.org/r/20220327154005.806049-1-ztong0001@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-05-09 09:14:31 +02:00
..
bmi160 iio:imu:bmi160: disable regulator in error path 2022-05-09 09:14:31 +02:00
inv_icm42600 iio: imu: inv_icm42600: Fix I2C init possible nack 2022-05-09 09:14:28 +02:00
inv_mpu6050 Add startup time for each chip using inv_mpu6050 driver 2021-07-19 09:51:59 +01:00
st_lsm6dsx iio: imu: st_lsm6dsx: wait for settling time in st_lsm6dsx_read_oneshot 2022-03-02 11:48:04 +01:00
st_lsm9ds0 iio: st-sensors: Remove some unused includes and add some that should be there 2021-07-24 15:59:00 +01:00
adis.c iio: adis: do not disabe IRQs in 'adis_init()' 2021-11-18 19:16:54 +01:00
adis16400.c iio: imu: remove unused private data assigned with spi_set_drvdata() 2021-06-13 17:00:17 +01:00
adis16460.c iio: imu: remove unused private data assigned with spi_set_drvdata() 2021-06-13 17:00:17 +01:00
adis16475.c iio: adis16475: fix deadlock on frequency set 2021-09-25 16:01:06 +01:00
adis16480.c iio:imu:adis16480: fix buffering for devices with no burst mode 2022-03-02 11:48:03 +01:00
adis_buffer.c iio: adis: add burst_max_speed_hz variable 2021-05-17 13:49:09 +01:00
adis_trigger.c iio: core: move @id from struct iio_dev to struct iio_dev_opaque 2021-05-17 13:49:13 +01:00
fxos8700.h iio: imu: Add support for the FXOS8700 IMU 2019-10-22 10:24:50 +01:00
fxos8700_core.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
fxos8700_i2c.c iio: imu: fxos8700: Drop unneeded explicit castings 2021-03-25 19:13:50 +00:00
fxos8700_spi.c iio: imu: fxos8700: Drop unneeded explicit castings 2021-03-25 19:13:50 +00:00
Kconfig iio: st_sensors: Add lsm9ds0 IMU support 2021-05-17 13:54:22 +01:00
kmx61.c iio: Fix error handling for PM 2022-03-02 11:48:04 +01:00
Makefile iio: st_sensors: Add lsm9ds0 IMU support 2021-05-17 13:54:22 +01:00