Re: [PATCH 04/15] iio: buffer-dma: Enable buffer write support

2021-11-27 Thread Jonathan Cameron
On Sun, 21 Nov 2021 17:19:32 + Paul Cercueil wrote: > Hi Jonathan, > > Le dim., nov. 21 2021 at 14:20:49 +, Jonathan Cameron > a écrit : > > On Mon, 15 Nov 2021 14:19:14 + > > Paul Cercueil wrote: > > > >> Adding write support to the buffer-dma code is easy - the write() > >>

Re: [PATCH 04/15] iio: buffer-dma: Enable buffer write support

2021-11-21 Thread Paul Cercueil
Hi Jonathan, Le dim., nov. 21 2021 at 14:20:49 +, Jonathan Cameron a écrit : On Mon, 15 Nov 2021 14:19:14 + 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 04/15] iio: buffer-dma: Enable buffer write support

2021-11-21 Thread Jonathan Cameron
On Mon, 15 Nov 2021 14:19:14 + 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 04/15] iio: buffer-dma: Enable buffer write support

2021-11-16 Thread Alexandru Ardelean
On Mon, Nov 15, 2021 at 4:19 PM 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 04/15] iio: buffer-dma: Enable buffer write support

2021-11-15 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()