Re: [PATCH v6 20/24] iio: buffer: add ioctl() to support opening extra buffers for IIO device

2021-03-27 Thread Lars-Peter Clausen
On 3/24/21 10:10 AM, Alexandru Ardelean wrote: On Tue, Mar 23, 2021 at 1:35 PM Jonathan Cameron wrote: [..] Continuing a bit with the original IIO buffer ioctl(), I talked to Lars a bit over IRC. And there was an idea/suggestion to maybe use a struct to pass more information to the buffer F

Re: [PATCH v6 20/24] iio: buffer: add ioctl() to support opening extra buffers for IIO device

2021-03-24 Thread Alexandru Ardelean
> Sent: Saturday, March 6, 2021 6:01 PM > > > > > > To: Jonathan Cameron > > > > > > Cc: Lars-Peter Clausen ; Ardelean, > > > > > > zzzzAlexandru ; LKML > > > > > ker...@vger.kernel.org>; linux-iio ; > >

Re: [PATCH v6 20/24] iio: buffer: add ioctl() to support opening extra buffers for IIO device

2021-03-23 Thread Jonathan Cameron
Clausen ; Ardelean, > > > > > Alexandru ; LKML > > > > ker...@vger.kernel.org>; linux-iio ; > > > > > Hennerich, Michael ; Jonathan > > > > > Cameron ; Sa, Nuno ; > > > > > Bogdan, Dragos > > > &

Re: [PATCH v6 20/24] iio: buffer: add ioctl() to support opening extra buffers for IIO device

2021-03-23 Thread Alexandru Ardelean
gt; Hennerich, Michael ; Jonathan > > > > Cameron ; Sa, Nuno ; > > > > Bogdan, Dragos > > > > Subject: Re: [PATCH v6 20/24] iio: buffer: add ioctl() to support > > > > opening > > > > extra buffers for IIO device &g

Re: [PATCH v6 20/24] iio: buffer: add ioctl() to support opening extra buffers for IIO device

2021-03-21 Thread Jonathan Cameron
> To: Jonathan Cameron > > > Cc: Lars-Peter Clausen ; Ardelean, > > > Alexandru ; LKML > > ker...@vger.kernel.org>; linux-iio ; > > > Hennerich, Michael ; Jonathan > > > Cameron ; Sa, Nuno ; > > > Bogdan, Dragos >

Re: [PATCH v6 20/24] iio: buffer: add ioctl() to support opening extra buffers for IIO device

2021-03-20 Thread Jonathan Cameron
u ; LKML > ker...@vger.kernel.org>; linux-iio ; > > Hennerich, Michael ; Jonathan > > Cameron ; Sa, Nuno ; > > Bogdan, Dragos > > Subject: Re: [PATCH v6 20/24] iio: buffer: add ioctl() to support opening > > extra buffers for IIO device > > > > [External]

RE: [PATCH v6 20/24] iio: buffer: add ioctl() to support opening extra buffers for IIO device

2021-03-15 Thread Sa, Nuno
Sa, Nuno ; > Bogdan, Dragos > Subject: Re: [PATCH v6 20/24] iio: buffer: add ioctl() to support opening > extra buffers for IIO device > > [External] > > On Sun, Feb 28, 2021 at 9:00 PM Jonathan Cameron > wrote: > > > > On Sun, 28 Feb 2021 16:51:51 +0100 > &

Re: [PATCH v6 20/24] iio: buffer: add ioctl() to support opening extra buffers for IIO device

2021-03-13 Thread Jonathan Cameron
On Sun, 7 Mar 2021 12:13:08 + Jonathan Cameron wrote: > On Sat, 6 Mar 2021 19:00:52 +0200 > Alexandru Ardelean wrote: > > > On Sun, Feb 28, 2021 at 9:00 PM Jonathan Cameron > > wrote: > > > > > > On Sun, 28 Feb 2021 16:51:51 +0100 > > > Lars-Peter Clausen wrote: > > > > > > > On 2/2

Re: [PATCH v6 20/24] iio: buffer: add ioctl() to support opening extra buffers for IIO device

2021-03-07 Thread Jonathan Cameron
On Sat, 6 Mar 2021 19:00:52 +0200 Alexandru Ardelean wrote: > On Sun, Feb 28, 2021 at 9:00 PM Jonathan Cameron > wrote: > > > > On Sun, 28 Feb 2021 16:51:51 +0100 > > Lars-Peter Clausen wrote: > > > > > On 2/28/21 3:34 PM, Jonathan Cameron wrote: > > > > On Sun, 28 Feb 2021 09:51:38 +0100 >

Re: [PATCH v6 20/24] iio: buffer: add ioctl() to support opening extra buffers for IIO device

2021-03-06 Thread Alexandru Ardelean
On Sun, Feb 28, 2021 at 9:00 PM Jonathan Cameron wrote: > > On Sun, 28 Feb 2021 16:51:51 +0100 > Lars-Peter Clausen wrote: > > > On 2/28/21 3:34 PM, Jonathan Cameron wrote: > > > On Sun, 28 Feb 2021 09:51:38 +0100 > > > Lars-Peter Clausen wrote: > > > > > >> On 2/15/21 11:40 AM, Alexandru Ardele

Re: [PATCH v6 20/24] iio: buffer: add ioctl() to support opening extra buffers for IIO device

2021-02-28 Thread Alexandru Ardelean
On Sun, Feb 28, 2021 at 5:54 PM Lars-Peter Clausen wrote: > > On 2/28/21 3:34 PM, Jonathan Cameron wrote: > > On Sun, 28 Feb 2021 09:51:38 +0100 > > Lars-Peter Clausen wrote: > > > >> On 2/15/21 11:40 AM, Alexandru Ardelean wrote: > >>> With this change, an ioctl() call is added to open a charact

Re: [PATCH v6 20/24] iio: buffer: add ioctl() to support opening extra buffers for IIO device

2021-02-28 Thread Alexandru Ardelean
On Sun, Feb 28, 2021 at 9:58 AM Lars-Peter Clausen wrote: > > On 2/15/21 11:40 AM, Alexandru Ardelean wrote: > > [...] > > /** > >* iio_buffer_wakeup_poll - Wakes up the buffer waitqueue > >* @indio_dev: The IIO device > > @@ -1343,6 +1371,96 @@ static void > > iio_buffer_unregister_leg

Re: [PATCH v6 20/24] iio: buffer: add ioctl() to support opening extra buffers for IIO device

2021-02-28 Thread Jonathan Cameron
On Sun, 28 Feb 2021 16:51:51 +0100 Lars-Peter Clausen wrote: > On 2/28/21 3:34 PM, Jonathan Cameron wrote: > > On Sun, 28 Feb 2021 09:51:38 +0100 > > Lars-Peter Clausen wrote: > > > >> On 2/15/21 11:40 AM, Alexandru Ardelean wrote: > >>> With this change, an ioctl() call is added to open a c

Re: [PATCH v6 20/24] iio: buffer: add ioctl() to support opening extra buffers for IIO device

2021-02-28 Thread Lars-Peter Clausen
On 2/28/21 3:34 PM, Jonathan Cameron wrote: On Sun, 28 Feb 2021 09:51:38 +0100 Lars-Peter Clausen wrote: On 2/15/21 11:40 AM, Alexandru Ardelean wrote: With this change, an ioctl() call is added to open a character device for a buffer. The ioctl() number is 'i' 0x91, which follows the IIO_GET

Re: [PATCH v6 20/24] iio: buffer: add ioctl() to support opening extra buffers for IIO device

2021-02-28 Thread Jonathan Cameron
On Sun, 28 Feb 2021 09:51:38 +0100 Lars-Peter Clausen wrote: > On 2/15/21 11:40 AM, Alexandru Ardelean wrote: > > With this change, an ioctl() call is added to open a character device for a > > buffer. The ioctl() number is 'i' 0x91, which follows the > > IIO_GET_EVENT_FD_IOCTL ioctl. > > > > The

Re: [PATCH v6 20/24] iio: buffer: add ioctl() to support opening extra buffers for IIO device

2021-02-28 Thread Lars-Peter Clausen
On 2/15/21 11:40 AM, Alexandru Ardelean wrote: With this change, an ioctl() call is added to open a character device for a buffer. The ioctl() number is 'i' 0x91, which follows the IIO_GET_EVENT_FD_IOCTL ioctl. The ioctl() will return an FD for the requested buffer index. The indexes are the sam

Re: [PATCH v6 20/24] iio: buffer: add ioctl() to support opening extra buffers for IIO device

2021-02-28 Thread Lars-Peter Clausen
On 2/15/21 11:40 AM, Alexandru Ardelean wrote: [...] /** * iio_buffer_wakeup_poll - Wakes up the buffer waitqueue * @indio_dev: The IIO device @@ -1343,6 +1371,96 @@ static void iio_buffer_unregister_legacy_sysfs_groups(struct iio_dev *indio_dev) kfree(iio_dev_opaque->legacy_scan