aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/test_autoload.c
diff options
context:
space:
mode:
authorDumitru Ceclan <[email protected]>2024-07-31 15:37:22 +0300
committerJonathan Cameron <[email protected]>2024-08-03 16:01:47 +0100
commit96f9ab0d5933c1c00142dd052f259fce0bc3ced2 (patch)
tree005c6cc6ca5d57f372231861eb5b0282deda5f94 /tools/testing/selftests/bpf/progs/test_autoload.c
parent70eac5c3c49195a323387ec237f17f9801cbdb25 (diff)
iio: adc: ad7124: fix chip ID mismatch
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 <[email protected]> Reviewed-by: Nuno Sa <[email protected]> Link: https://patch.msgid.link/[email protected] Cc: <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions