linux-stable/drivers/iio/imu
Tong Zhang f4443ca009 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:16:17 +02:00
..
bmi160 iio:imu:bmi160: disable regulator in error path 2022-05-09 09:16:17 +02:00
inv_icm42600 iio: imu: inv_icm42600: Fix I2C init possible nack 2022-05-09 09:16:12 +02:00
inv_mpu6050 iio:imu:inv_mpu6050: Suppress clang W=1 warning about pointer to enum conversion. 2021-12-21 15:10:09 +00:00
st_lsm6dsx iio: imu: st_lsm6dsx: use dev_to_iio_dev() to get iio_dev struct 2022-04-08 13:57:15 +02:00
st_lsm9ds0 iio: st_lsm9ds0: Make use of the helper function dev_err_probe() 2021-10-19 08:30:44 +01:00
adis.c iio: adis: handle devices that cannot unmask the drdy pin 2021-10-19 08:27:34 +01:00
adis16400.c iio: imu: adis16400: Fix buffer alignment requirements. 2021-10-19 08:29:22 +01:00
adis16460.c iio: adis16460: make use of the new unmasked_drdy flag 2021-10-19 08:27:34 +01:00
adis16475.c First set of IIO new device and feature support for the 5.16 cycle 2021-10-19 11:44:28 +02:00
adis16480.c iio:imu:adis16480: fix buffering for devices with no burst mode 2022-01-23 18:23:48 +00:00
adis_buffer.c iio: adis: add burst_max_speed_hz variable 2021-05-17 13:49:09 +01:00
adis_trigger.c iio: adis: handle devices that cannot unmask the drdy pin 2021-10-19 08:27:34 +01:00
fxos8700.h
fxos8700_core.c
fxos8700_i2c.c
fxos8700_spi.c
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-01-30 14:50:34 +00:00
Makefile iio: st_sensors: Add lsm9ds0 IMU support 2021-05-17 13:54:22 +01:00