Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a5e48e24 authored by Srikanth Thokala's avatar Srikanth Thokala Committed by Vinod Koul
Browse files

dmaengine: xilinx: vdma: Allow only one chunk in a line



This patch adds a sanity check to see if frame_size is 1.

Signed-off-by: default avatarSrikanth Thokala <sthokal@xilinx.com>
Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
parent 049c0d57
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -942,6 +942,9 @@ xilinx_vdma_dma_prep_interleaved(struct dma_chan *dchan,
	if (!xt->numf || !xt->sgl[0].size)
	if (!xt->numf || !xt->sgl[0].size)
		return NULL;
		return NULL;


	if (xt->frame_size != 1)
		return NULL;

	/* Allocate a transaction descriptor. */
	/* Allocate a transaction descriptor. */
	desc = xilinx_vdma_alloc_tx_descriptor(chan);
	desc = xilinx_vdma_alloc_tx_descriptor(chan);
	if (!desc)
	if (!desc)