linux/drivers/iio
Zheyu Ma 3a26787dac iio: magnetometer: ak8975: Fix the error handling in ak8975_power_on()
When the driver fails to enable the regulator 'vid', we will get the
following splat:

[   79.955610] WARNING: CPU: 5 PID: 441 at drivers/regulator/core.c:2257 _regulator_put+0x3ec/0x4e0
[   79.959641] RIP: 0010:_regulator_put+0x3ec/0x4e0
[   79.967570] Call Trace:
[   79.967773]  <TASK>
[   79.967951]  regulator_put+0x1f/0x30
[   79.968254]  devres_release_group+0x319/0x3d0
[   79.968608]  i2c_device_probe+0x766/0x940

Fix this by disabling the 'vdd' regulator when failing to enable 'vid'
regulator.

Signed-off-by: Zheyu Ma <zheyuma97@gmail.com>
Link: https://lore.kernel.org/r/20220409034849.3717231-2-zheyuma97@gmail.com
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2022-04-10 16:59:29 +01:00
..
accel Char/Misc and other driver updates for 5.18-rc1 2022-03-28 12:27:35 -07:00
adc iio: adc: ad7280a: Fix wrong variable used when setting thresholds. 2022-04-04 09:19:01 +01:00
addac iio: addac: ad74413r: correct comparator gpio getters mask usage 2022-01-30 14:23:33 +00:00
afe iio: afe: rescale: add temperature transducers 2022-02-28 10:22:24 +00:00
amplifiers Char/Misc and other driver updates for 5.18-rc1 2022-03-28 12:27:35 -07:00
buffer iio: hw_consumer: Use struct_size() helper in kzalloc() 2022-01-23 18:03:37 +00:00
cdc iio:cdc:ad7150: Fix use of uninitialized ret 2021-04-07 08:36:39 +01:00
chemical iio: scd4x: check return of scd4x_write_and_fetch 2022-04-04 09:19:01 +01:00
common Char/Misc and other driver updates for 5.18-rc1 2022-03-28 12:27:35 -07:00
dac iio: dac: ad5592r: Fix the missing return value. 2022-04-04 09:19:01 +01:00
dummy iio:dummy: Drop set but unused variable len. 2021-12-21 15:10:09 +00:00
filter iio:filter:admv8818: select REGMAP_SPI for ADMV8818 2022-04-04 09:19:01 +01:00
frequency Char/Misc and other driver updates for 5.18-rc1 2022-03-28 12:27:35 -07:00
gyro Char/Misc and other driver updates for 5.18-rc1 2022-03-28 12:27:35 -07:00
health spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
humidity iio:common:meas-spec: Move exports into IIO_MEAS_SPEC_SENSORS 2022-02-18 11:42:26 +00:00
imu iio:imu:bmi160: disable regulator in error path 2022-04-04 09:19:01 +01:00
light iio:light:rpr0521: Switch from CONFIG_PM guards to pm_ptr() etc 2022-02-21 19:33:04 +00:00
magnetometer iio: magnetometer: ak8975: Fix the error handling in ak8975_power_on() 2022-04-10 16:59:29 +01:00
multiplexer iio: multiplexer: iio-mux: Support settle-time-us property 2021-10-21 20:02:54 +01:00
orientation iio: hid-sensors: bind IIO channels alloc to device object 2021-07-13 18:21:53 +01:00
position iio: hid-sensors: Update header includes 2021-06-16 14:53:13 +01:00
potentiometer Char/Misc and other driver updates for 5.18-rc1 2022-03-28 12:27:35 -07:00
potentiostat iio: lmp91000: Remove no-op trigger ops 2021-11-17 17:51:38 +00:00
pressure Char/Misc and other driver updates for 5.18-rc1 2022-03-28 12:27:35 -07:00
proximity iio:proximity:sx9324: Fix hardware gain read/write 2022-04-04 09:19:02 +01:00
resolver iio:resolver:ad2s1200: Drop of_match_ptr protection 2020-09-21 18:41:31 +01:00
temperature Char/Misc and other driver updates for 5.18-rc1 2022-03-28 12:27:35 -07:00
test iio: test: add basic tests for the iio-rescale driver 2022-02-28 10:22:24 +00:00
trigger iio:adc:stm32*: Use pm[_sleep]_ptr() etc to avoid need to make pm __maybe_unused 2022-02-21 19:33:04 +00:00
iio_core_trigger.h iio: core-trigger: make iio_device_register_trigger_consumer() an int return 2021-03-11 20:47:02 +00:00
iio_core.h iio: Mark iio_device_type as const 2021-11-17 17:51:35 +00:00
industrialio-buffer.c First set of new device support, fixes, cleanups and features for IIO in 5.18 2022-03-18 12:41:32 +01:00
industrialio-configfs.c
industrialio-core.c iio: core: Use sysfs_emit() 2022-01-23 18:03:36 +00:00
industrialio-event.c iio: introduce mag_referenced 2022-02-21 19:33:05 +00:00
industrialio-sw-device.c
industrialio-sw-trigger.c
industrialio-trigger.c 1st set of IIO new device support, features and cleanup for 5.17 2021-12-22 12:33:01 +01:00
industrialio-triggered-event.c iio: core: move @id from struct iio_dev to struct iio_dev_opaque 2021-05-17 13:49:13 +01:00
inkern.c iio: inkern: make a best effort on offset calculation 2022-01-30 14:38:03 +00:00
Kconfig iio: add filter subfolder 2021-12-16 17:29:46 +00:00
Makefile iio: add filter subfolder 2021-12-16 17:29:46 +00:00
TODO