linux-stable/drivers/iio
Nuno Sá ecb010d441 iio: imu: adis: Refactor adis_initial_startup
All the ADIS devices perform, at the beginning, a self test to make sure
the device is in a sane state. Previously, the logic was that the self-test
was performed in adis_initial_startup() and if that failed a reset was done
and then a self-test was attempted again.

This change unifies the reset mechanism under the adis_initial_startup()
call. A HW reset will be done if  GPIO is configured, or a SW reset
otherwise. This should make sure that the chip is in a sane state for
self-test. Once the reset is done, the self-test operation will be
performed. If anything goes wrong with self-test, the driver should just
bail/error-out (i.e. no second attempt). The chip would likely not be a in
a sane state state if the self-test fails after a reset.

Signed-off-by: Nuno Sá <nuno.sa@analog.com>
Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2020-03-08 17:28:30 +00:00
..
accel iio: imu: adis: Add self_test_reg variable 2020-03-08 17:28:30 +00:00
adc iio: adc: modify NPCM reset support 2020-02-14 15:06:24 +00:00
afe
amplifiers iio: amplifiers: hmc425a: Add support for HMC425A attenuator 2020-03-08 17:28:21 +00:00
buffer
chemical Merge 5.5-rc7 into staging-next 2020-01-22 09:05:34 +01:00
common iio: st_sensors: handle memory allocation failure to fix null pointer dereference 2020-02-14 12:08:22 +00:00
dac iio: dac: ltc2632: remove some unused defines 2020-02-14 15:06:24 +00:00
dummy
frequency
gyro iio: imu: adis: Add self_test_reg variable 2020-03-08 17:28:30 +00:00
health
humidity iio: humidity: dht11 remove TODO since it doesn't make sense 2020-01-12 11:34:15 +00:00
imu iio: imu: adis: Refactor adis_initial_startup 2020-03-08 17:28:30 +00:00
light iio: vcnl4000: Enable runtime pm for vcnl4200/4040 2020-02-14 15:06:24 +00:00
magnetometer iio: magnetometer: ak8975: Convert to use device_get_match_data() 2020-01-18 11:43:17 +00:00
multiplexer
orientation
potentiometer
potentiostat
pressure chrome platform changes for 5.6 2020-02-04 07:17:41 +00:00
proximity iio: srf04: add power management feature 2020-02-14 12:08:23 +00:00
resolver
temperature
trigger
iio_core.h
iio_core_trigger.h
industrialio-buffer.c Merge 5.5-rc7 into staging-next 2020-01-22 09:05:34 +01:00
industrialio-configfs.c
industrialio-core.c iio: core: Handle 'dB' suffix in core 2020-02-21 10:02:16 +00:00
industrialio-event.c
industrialio-sw-device.c
industrialio-sw-trigger.c
industrialio-trigger.c
industrialio-triggered-event.c
inkern.c
Kconfig
Makefile