]> git.itanic.dy.fi Git - linux-stable/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Mar 2020 07:25:53 +0000 (08:25 +0100)
commit4d71a4f76179370623d4ab30a45c629dcbe70b4b
tree04cab083322e6cb559643d1d7037895feb840f72
parenta79f53a2f5afd490f39e226ed82728c2dc5f15cb
iio: adc: stm32-dfsdm: fix sleep in atomic context

commit e19ac9d9a978f8238a85a28ed624094a497d5ae6 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/adc/stm32-dfsdm-adc.c