dmaengine: axi-dmac: Allocate hardware descriptors
authorPaul Cercueil <paul@crapouillou.net>
Fri, 15 Dec 2023 13:13:10 +0000 (14:13 +0100)
committerVinod Koul <vkoul@kernel.org>
Thu, 21 Dec 2023 16:09:56 +0000 (21:39 +0530)
commit3f8fd25936ee5f52596f10d420f650c5b5e3285f
treeafa608f5c4108eb7e471a9d51b1ec854f4b5a79f
parenta2ab7045389feab1c26ebab105a8ad6bce74a4a7
dmaengine: axi-dmac: Allocate hardware descriptors

Change where and how the DMA transfers meta-data is stored, to prepare
for the upcoming introduction of scatter-gather support.

Allocate hardware descriptors in the format that the HDL core will be
expecting them when the scatter-gather feature is enabled, and use these
fields to store the data that was previously stored in the axi_dmac_sg
structure.

Note that the 'x_len' and 'y_len' fields now contain the transfer length
minus one, since that's what the hardware will expect in these fields.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Link: https://lore.kernel.org/r/20231215131313.23840-3-paul@crapouillou.net
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/dma-axi-dmac.c