diff options
author | Miquel Raynal <miquel.raynal@bootlin.com> | 2021-10-15 10:14:56 +0200 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2021-10-21 09:23:54 +0100 |
commit | 8bed0166c65bcb51bc4d14790d968dabe24b9723 (patch) | |
tree | 66b54b06bdd995d9891e7b9d46fbdc095ab991e4 /drivers/iio/accel/Kconfig | |
parent | 90fc6ff48be44ece2cb9b0012074bd0e642f48bc (diff) |
iio: adc: ti_am335x_adc: Wait the idle state to avoid stalls
At least on a am4372, a simple:
$ cat /sys/bus/iio/devices/iio\:deviceX/in_voltage*_raw
can stall forever. It seems that it comes from the fact that the
internal state machine does not have enough time to return to its idle
state in this situation before receiving another request, leading to an
internal stall.
Add a tiadc_wait_idle() helper to ensure no new conversion is requested
while the FSM is still busy.
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20211015081506.933180-39-miquel.raynal@bootlin.com
Diffstat (limited to 'drivers/iio/accel/Kconfig')
0 files changed, 0 insertions, 0 deletions