Skip to content

Commit 7a71c6d

Browse files
miquelraynalvinodkoul
authored andcommitted
dmaengine: xilinx: xdma: Clarify kdoc in XDMA driver
Clarify the kernel doc of xdma_fill_descs(), especially how big chunks will be handled. Signed-off-by: Miquel Raynal <[email protected]> Signed-off-by: Louis Chauvet <[email protected]> Link: https://lore.kernel.org/stable/20240327-digigram-xdma-fixes-v1-3-45f4a52c0283%40bootlin.com Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 6a40fb8 commit 7a71c6d

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

drivers/dma/xilinx/xdma.c

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -554,12 +554,14 @@ static void xdma_synchronize(struct dma_chan *chan)
554554
}
555555

556556
/**
557-
* xdma_fill_descs - Fill hardware descriptors with contiguous memory block addresses
558-
* @sw_desc: tx descriptor state container
559-
* @src_addr: Value for a ->src_addr field of a first descriptor
560-
* @dst_addr: Value for a ->dst_addr field of a first descriptor
561-
* @size: Total size of a contiguous memory block
562-
* @filled_descs_num: Number of filled hardware descriptors for corresponding sw_desc
557+
* xdma_fill_descs() - Fill hardware descriptors for one contiguous memory chunk.
558+
* More than one descriptor will be used if the size is bigger
559+
* than XDMA_DESC_BLEN_MAX.
560+
* @sw_desc: Descriptor container
561+
* @src_addr: First value for the ->src_addr field
562+
* @dst_addr: First value for the ->dst_addr field
563+
* @size: Size of the contiguous memory block
564+
* @filled_descs_num: Index of the first descriptor to take care of in @sw_desc
563565
*/
564566
static inline u32 xdma_fill_descs(struct xdma_desc *sw_desc, u64 src_addr,
565567
u64 dst_addr, u32 size, u32 filled_descs_num)

0 commit comments

Comments
 (0)