Re: [PATCH] iio: adc: stm32: fix sleep inside atomic section when using DMA

2019-03-30 Thread Jonathan Cameron
On Tue, 26 Mar 2019 13:44:04 +0100 Fabrice Gasnier wrote: > Enabling CONFIG_DEBUG_ATOMIC_SLEEP=y triggers this BUG message: > BUG: sleeping function called from invalid context at kernel/irq/chip.c... > > Call stack is as follows: > - __might_sleep > - handle_nested_irq <-- Expects

Re: [PATCH] iio: adc: stm32: fix sleep inside atomic section when using DMA

2019-03-27 Thread Mukesh Ojha
On 3/27/2019 6:21 PM, Mukesh Ojha wrote: On 3/26/2019 6:14 PM, Fabrice Gasnier wrote: Enabling CONFIG_DEBUG_ATOMIC_SLEEP=y triggers this BUG message: BUG: sleeping function called from invalid context at kernel/irq/chip.c... Call stack is as follows: - __might_sleep - handle_nested_irq

Re: [PATCH] iio: adc: stm32: fix sleep inside atomic section when using DMA

2019-03-27 Thread Mukesh Ojha
On 3/26/2019 6:14 PM, Fabrice Gasnier wrote: Enabling CONFIG_DEBUG_ATOMIC_SLEEP=y triggers this BUG message: BUG: sleeping function called from invalid context at kernel/irq/chip.c... Call stack is as follows: - __might_sleep - handle_nested_irq <-- Expects threaded irq -

[PATCH] iio: adc: stm32: fix sleep inside atomic section when using DMA

2019-03-26 Thread Fabrice Gasnier
Enabling CONFIG_DEBUG_ATOMIC_SLEEP=y triggers this BUG message: BUG: sleeping function called from invalid context at kernel/irq/chip.c... Call stack is as follows: - __might_sleep - handle_nested_irq <-- Expects threaded irq - iio_trigger_poll_chained - stm32_adc_dma_buffer_done -