Re: [PATCH v4] iio: adc: xilinx-xadc: Push interrupts into hardirq context

2015-08-15 Thread Jonathan Cameron
On 12/08/15 17:33, Sebastian Andrzej Siewior wrote: > On 08/12/2015 05:17 PM, Lars-Peter Clausen wrote: >> On 08/12/2015 01:00 AM, Xander Huff wrote: >>> Unfortunately, this breaks PREEMPT_RT builds, where a spinlock can sleep, >>> and is thus not able to be acquired from a hardirq handler. This pa

Re: [PATCH v4] iio: adc: xilinx-xadc: Push interrupts into hardirq context

2015-08-12 Thread Sebastian Andrzej Siewior
On 08/12/2015 05:17 PM, Lars-Peter Clausen wrote: > On 08/12/2015 01:00 AM, Xander Huff wrote: >> Unfortunately, this breaks PREEMPT_RT builds, where a spinlock can sleep, >> and is thus not able to be acquired from a hardirq handler. This patch gets >> rid of the threaded handler and pushes all in

Re: [PATCH v4] iio: adc: xilinx-xadc: Push interrupts into hardirq context

2015-08-12 Thread Lars-Peter Clausen
On 08/12/2015 01:00 AM, Xander Huff wrote: > The driver currently registers a pair of irq handlers using > request_threaded_irq(), however the synchronization mechanism between the > hardirq and the threadedirq handler is a regular spinlock. > > Unfortunately, this breaks PREEMPT_RT builds, where

[PATCH v4] iio: adc: xilinx-xadc: Push interrupts into hardirq context

2015-08-11 Thread Xander Huff
The driver currently registers a pair of irq handlers using request_threaded_irq(), however the synchronization mechanism between the hardirq and the threadedirq handler is a regular spinlock. Unfortunately, this breaks PREEMPT_RT builds, where a spinlock can sleep, and is thus not able to be acqu