summaryrefslogtreecommitdiffstats
path: root/drivers/tee/optee
diff options
context:
space:
mode:
authorMiquel Raynal <miquel.raynal@bootlin.com>2021-10-15 10:14:56 +0200
committerLee Jones <lee.jones@linaro.org>2021-10-21 09:23:54 +0100
commit8bed0166c65bcb51bc4d14790d968dabe24b9723 (patch)
tree66b54b06bdd995d9891e7b9d46fbdc095ab991e4 /drivers/tee/optee
parent90fc6ff48be44ece2cb9b0012074bd0e642f48bc (diff)
downloadlinux-stable-8bed0166c65bcb51bc4d14790d968dabe24b9723.tar.gz
linux-stable-8bed0166c65bcb51bc4d14790d968dabe24b9723.tar.bz2
linux-stable-8bed0166c65bcb51bc4d14790d968dabe24b9723.zip
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/tee/optee')
0 files changed, 0 insertions, 0 deletions