Re: [PATCH v3 03/11] iio: buffer-dma: Get rid of outgoing queue

2023-05-01 Thread Jonathan Cameron
On Tue, 18 Apr 2023 10:08:21 +0200 Paul Cercueil wrote: > Hi Jonathan, > > Le dimanche 16 avril 2023 à 15:24 +0100, Jonathan Cameron a écrit : > > On Mon,  3 Apr 2023 17:47:52 +0200 > > Paul Cercueil wrote: > > > > > The buffer-dma code was using two queues, incoming and outgoing, to > > > m

Re: [PATCH v3 03/11] iio: buffer-dma: Get rid of outgoing queue

2023-04-18 Thread Paul Cercueil
Hi Jonathan, Le dimanche 16 avril 2023 à 15:24 +0100, Jonathan Cameron a écrit : > On Mon,  3 Apr 2023 17:47:52 +0200 > Paul Cercueil wrote: > > > The buffer-dma code was using two queues, incoming and outgoing, to > > manage the state of the blocks in use. > > > > While this totally works, it

Re: [PATCH v3 03/11] iio: buffer-dma: Get rid of outgoing queue

2023-04-16 Thread Jonathan Cameron
On Mon, 3 Apr 2023 17:47:52 +0200 Paul Cercueil wrote: > The buffer-dma code was using two queues, incoming and outgoing, to > manage the state of the blocks in use. > > While this totally works, it adds some complexity to the code, > especially since the code only manages 2 blocks. It is much

[PATCH v3 03/11] iio: buffer-dma: Get rid of outgoing queue

2023-04-03 Thread Paul Cercueil
The buffer-dma code was using two queues, incoming and outgoing, to manage the state of the blocks in use. While this totally works, it adds some complexity to the code, especially since the code only manages 2 blocks. It is much easier to just check each block's state manually, and keep a counter