Re: [PATCH v2 02/12] iio: buffer-dma: Enable buffer write support

2022-03-29 Thread Nuno Sá
On Mon, 2022-03-28 at 19:39 +0100, Paul Cercueil wrote: > Hi Jonathan, > > Le lun., mars 28 2022 at 18:24:09 +0100, Jonathan Cameron > a écrit : > > On Mon,  7 Feb 2022 12:59:23 + > > Paul Cercueil wrote: > > > > >  Adding write support to the buffer-dma code is easy - the > > > write() >

Re: [PATCH v2 02/12] iio: buffer-dma: Enable buffer write support

2022-03-28 Thread Andy Shevchenko
On Wed, Feb 9, 2022 at 9:10 AM Paul Cercueil wrote: > > Adding write support to the buffer-dma code is easy - the write() > function basically needs to do the exact same thing as the read() > function: dequeue a block, read or write the data, enqueue the block > when entirely processed. > >

Re: [PATCH v2 02/12] iio: buffer-dma: Enable buffer write support

2022-03-28 Thread Paul Cercueil
Hi Jonathan, Le lun., mars 28 2022 at 18:24:09 +0100, Jonathan Cameron a écrit : On Mon, 7 Feb 2022 12:59:23 + Paul Cercueil wrote: Adding write support to the buffer-dma code is easy - the write() function basically needs to do the exact same thing as the read() function: dequeue

Re: [PATCH v2 02/12] iio: buffer-dma: Enable buffer write support

2022-03-28 Thread Jonathan Cameron
On Mon, 7 Feb 2022 12:59:23 + Paul Cercueil wrote: > Adding write support to the buffer-dma code is easy - the write() > function basically needs to do the exact same thing as the read() > function: dequeue a block, read or write the data, enqueue the block > when entirely processed. > >

[PATCH v2 02/12] iio: buffer-dma: Enable buffer write support

2022-02-07 Thread Paul Cercueil
Adding write support to the buffer-dma code is easy - the write() function basically needs to do the exact same thing as the read() function: dequeue a block, read or write the data, enqueue the block when entirely processed. Therefore, the iio_buffer_dma_read() and the new iio_buffer_dma_write()