OSDN Git Service

iio: adc: stm32-dfsdm: fix sleep in atomic context
authorOlivier Moysan <olivier.moysan@st.com>
Tue, 21 Jan 2020 11:02:56 +0000 (12:02 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 2 Feb 2020 14:07:49 +0000 (14:07 +0000)
commite19ac9d9a978f8238a85a28ed624094a497d5ae6
tree3acb41d2efc3227840d7479658e533a68eb71a72
parenta500f3bd787f8224341e44b238f318c407b10897
iio: adc: stm32-dfsdm: fix sleep in atomic context

This commit fixes the error message:
"BUG: sleeping function called from invalid context at kernel/irq/chip.c"
Suppress the trigger irq handler. Make the buffer transfers directly
in DMA callback, instead.
Push buffers without timestamps, as timestamps are not supported
in DFSDM driver.

Fixes: 11646e81d775 ("iio: adc: stm32-dfsdm: add support for buffer modes")

Signed-off-by: Olivier Moysan <olivier.moysan@st.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/stm32-dfsdm-adc.c