提交 a5e48e24 编写于 作者: S Srikanth Thokala 提交者: Vinod Koul

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: NSrikanth Thokala <sthokal@xilinx.com>
Signed-off-by: NMichal Simek <michal.simek@xilinx.com>
Signed-off-by: NVinod Koul <vinod.koul@intel.com>
上级 049c0d57
...@@ -942,6 +942,9 @@ xilinx_vdma_dma_prep_interleaved(struct dma_chan *dchan, ...@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册