diff options
| author | Jonathan Santos <Jonathan.Santos@analog.com> | 2026-02-23 14:59:26 +0300 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2026-03-01 15:06:57 +0300 |
| commit | 8be19e233744961db6069da9c9ab63eb085a0447 (patch) | |
| tree | f24952aed5adb71ad9a9b72a792955dc030aea25 /include/linux/workqueue.h | |
| parent | 185f7b6cee61a2c764e6a5026f5c0dc57e14277a (diff) | |
| download | linux-8be19e233744961db6069da9c9ab63eb085a0447.tar.xz | |
iio: adc: ad7768-1: fix one-shot mode data acquisition
According to the datasheet, one-shot mode requires a SYNC_IN pulse to
trigger a new sample conversion. In the current implementation, No sync
pulse was sent after switching to one-shot mode and reinit_completion()
was called before mode switching, creating a race condition where spurious
interrupts during mode change could trigger completion prematurely.
Fix by sending a sync pulse after configuring one-shot mode and
reinit_completion() to ensure it only waits for the actual conversion
completion.
Fixes: a5f8c7da3dbe ("iio: adc: Add AD7768-1 ADC basic support")
Signed-off-by: Jonathan Santos <Jonathan.Santos@analog.com>
Reviewed-by: David Lechner <dlechner@baylibre.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'include/linux/workqueue.h')
0 files changed, 0 insertions, 0 deletions
