dmaengine: xilinx: xdma: Better handling of the busy variable
authorMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 30 Nov 2023 11:13:14 +0000 (12:13 +0100)
committerVinod Koul <vkoul@kernel.org>
Thu, 21 Dec 2023 16:21:27 +0000 (21:51 +0530)
commitb3072be7f955e56789a0508c18e9870f45cd9a11
treea2a156be5700f6d8228de23d776b308b32085406
parent58b61fc75ba901b1fd63c911b31249f36d17e9c4
dmaengine: xilinx: xdma: Better handling of the busy variable

The driver internal scatter-gather logic is:
* set busy to true
* start transfer
<irq>
  * set busy to false
  * trigger next transfer if any
    * set busy to true
</irq>

Setting busy to false in cyclic transfers does not make any sense and is
conceptually wrong. In order to ease the integration of additional
callbacks let's move this change to the scatter-gather path.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/r/20231130111315.729430-4-miquel.raynal@bootlin.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/xilinx/xdma.c