kernel_samsung_a53x/drivers/iio
Dumitru Ceclan 2c98fab600 iio: adc: ad7124: fix chip ID mismatch
commit 96f9ab0d5933c1c00142dd052f259fce0bc3ced2 upstream.

The ad7124_soft_reset() function has the assumption that the chip will
assert the "power-on reset" bit in the STATUS register after a software
reset without any delay. The POR bit =0 is used to check if the chip
initialization is done.

A chip ID mismatch probe error appears intermittently when the probe
continues too soon and the ID register does not contain the expected
value.

Fix by adding a 200us delay after the software reset command is issued.

Fixes: b3af341bbd96 ("iio: adc: Add ad7124 support")
Signed-off-by: Dumitru Ceclan <dumitru.ceclan@analog.com>
Reviewed-by: Nuno Sa <nuno.sa@analog.com>
Link: https://patch.msgid.link/20240731-ad7124-fix-v1-1-46a76aa4b9be@analog.com
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-23 23:21:07 +01:00
..
accel iio: accel: mxc4005: Interrupt handling fixes 2024-11-19 11:32:48 +01:00
adc iio: adc: ad7124: fix chip ID mismatch 2024-11-23 23:21:07 +01:00
addac
afe
amplifiers
buffer iio: buffer-dmaengine: fix releasing dma channel on error 2024-11-23 23:21:06 +01:00
chemical iio: chemical: bme680: Fix sensor data read operation 2024-11-19 14:19:33 +01:00
common iio: common: ms_sensors: ms_sensors_i2c: fix humidity conversion time table 2024-11-18 12:12:00 +01:00
dac iio: dac: ad5592r: fix temperature channel scaling value 2024-11-19 14:19:04 +01:00
dummy
frequency
gyro
health
humidity
imu iio: imu: inv_icm42600: delete unneeded update watermark call 2024-11-19 14:19:04 +01:00
light
magnetometer iio: magnetometer: rm3100: add boundary check for the value read from RM3100_REG_TMRC 2024-11-18 12:13:31 +01:00
multiplexer
orientation
position
potentiometer
potentiostat
pressure iio: pressure: dps310: support negative temperature values 2024-11-19 12:27:03 +01:00
proximity
resolver
temperature
trigger
iio_core.h
iio_core_trigger.h
industrialio-buffer.c
industrialio-configfs.c
industrialio-core.c
industrialio-event.c
industrialio-sw-device.c
industrialio-sw-trigger.c
industrialio-trigger.c
industrialio-triggered-event.c
inkern.c iio: fix scale application in iio_convert_raw_to_processed_unlocked 2024-11-23 23:21:07 +01:00
Kconfig
Makefile
TODO