Home
last modified time | relevance | path

Searched hist:e6afcf6c598d6f3a0c9c408bfeddb3f5730608b0 (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/iio/adc/
H A Dstm32-adc.cdiff e6afcf6c598d6f3a0c9c408bfeddb3f5730608b0 Fri Oct 25 17:04:20 CEST 2019 Fabrice Gasnier <fabrice.gasnier@st.com> iio: adc: stm32-adc: fix stopping dma

There maybe a race when using dmaengine_terminate_all(). The predisable
routine may call iio_triggered_buffer_predisable() prior to a pending DMA
callback.
Adopt dmaengine_terminate_sync() to ensure there's no pending DMA request
before calling iio_triggered_buffer_predisable().

Fixes: 2763ea0585c9 ("iio: adc: stm32: add optional dma support")

Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>