Re: [PATCH 4/8] spi: dw-dma: Move DMA transfers submission to the channels prep methods

2020-07-31 Thread Serge Semin
On Fri, Jul 31, 2020 at 12:15:28PM +0300, Andy Shevchenko wrote: > On Fri, Jul 31, 2020 at 10:59:49AM +0300, Serge Semin wrote: > > Indeed we can freely move the dmaengine_submit() method invocation and the > > Tx and Rx busy flag setting into the DMA Tx/Rx prepare methods. By doing > > so first

Re: [PATCH 4/8] spi: dw-dma: Move DMA transfers submission to the channels prep methods

2020-07-31 Thread Andy Shevchenko
On Fri, Jul 31, 2020 at 10:59:49AM +0300, Serge Semin wrote: > Indeed we can freely move the dmaengine_submit() method invocation and the > Tx and Rx busy flag setting into the DMA Tx/Rx prepare methods. By doing > so first we implement another preparation before adding the one-by-one DMA > SG

[PATCH 4/8] spi: dw-dma: Move DMA transfers submission to the channels prep methods

2020-07-31 Thread Serge Semin
Indeed we can freely move the dmaengine_submit() method invocation and the Tx and Rx busy flag setting into the DMA Tx/Rx prepare methods. By doing so first we implement another preparation before adding the one-by-one DMA SG entries transmission, second we now have the dma_async_tx_descriptor