From: Srikanth Thokala Date: Wed, 5 Nov 2014 18:37:01 +0000 (+0200) Subject: dmaengine: xilinx: vdma: Allow only one chunk in a line X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a5e48e243be8073d34524a824fe354d2f2e1fa24;p=linux-beck.git 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: Srikanth Thokala Signed-off-by: Michal Simek Signed-off-by: Vinod Koul --- diff --git a/drivers/dma/xilinx/xilinx_vdma.c b/drivers/dma/xilinx/xilinx_vdma.c index 10937945a527..3d3f70dd9dea 100644 --- a/drivers/dma/xilinx/xilinx_vdma.c +++ b/drivers/dma/xilinx/xilinx_vdma.c @@ -942,6 +942,9 @@ xilinx_vdma_dma_prep_interleaved(struct dma_chan *dchan, if (!xt->numf || !xt->sgl[0].size) return NULL; + if (xt->frame_size != 1) + return NULL; + /* Allocate a transaction descriptor. */ desc = xilinx_vdma_alloc_tx_descriptor(chan); if (!desc)