Re: [PATCH 05/11] staging: iio: adc: ad7606: Add support for threaded irq

2018-12-17 Thread Popa, Stefan Serban
On Du, 2018-12-16 at 13:49 +, Jonathan Cameron wrote: > On Thu, 13 Dec 2018 14:46:17 +0200 > Stefan Popa wrote: > > > > > This patch replaces the use of a polling ring buffer with a threaded > > interrupt. > > > > Enabling the buffer sets the CONVST signal to high. When the rising > > edge

Re: [PATCH 05/11] staging: iio: adc: ad7606: Add support for threaded irq

2018-12-16 Thread Jonathan Cameron
On Thu, 13 Dec 2018 14:46:17 +0200 Stefan Popa wrote: > This patch replaces the use of a polling ring buffer with a threaded > interrupt. > > Enabling the buffer sets the CONVST signal to high. When the rising edge > of the CONVST is applied, BUSY signal goes logic high and transitions low > at

Re: [PATCH 05/11] staging: iio: adc: ad7606: Add support for threaded irq

2018-12-13 Thread Dan Carpenter
On Thu, Dec 13, 2018 at 02:46:17PM +0200, Stefan Popa wrote: > +static int ad7606_buffer_predisable(struct iio_dev *indio_dev) > +{ > + struct ad7606_state *st = iio_priv(indio_dev); > + int ret; > + > + reinit_completion(>completion); > + gpiod_set_value(st->gpio_convst, 1); > +

[PATCH 05/11] staging: iio: adc: ad7606: Add support for threaded irq

2018-12-13 Thread Stefan Popa
This patch replaces the use of a polling ring buffer with a threaded interrupt. Enabling the buffer sets the CONVST signal to high. When the rising edge of the CONVST is applied, BUSY signal goes logic high and transitions low at the end of the entire conversion process. The falling edge of the