diff options
author | Srikanth Thokala <srikanth.thokala@xilinx.com> | 2014-11-05 13:37:01 -0500 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2014-11-06 02:41:47 -0500 |
commit | a5e48e243be8073d34524a824fe354d2f2e1fa24 (patch) | |
tree | d4fbb7be95483361232109ea282e1ff04d619904 | |
parent | 049c0d577d63c6a95edd5f59fa192f89f2674a64 (diff) |
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 <sthokal@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
-rw-r--r-- | drivers/dma/xilinx/xilinx_vdma.c | 3 |
1 files changed, 3 insertions, 0 deletions
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, | |||
942 | if (!xt->numf || !xt->sgl[0].size) | 942 | if (!xt->numf || !xt->sgl[0].size) |
943 | return NULL; | 943 | return NULL; |
944 | 944 | ||
945 | if (xt->frame_size != 1) | ||
946 | return NULL; | ||
947 | |||
945 | /* Allocate a transaction descriptor. */ | 948 | /* Allocate a transaction descriptor. */ |
946 | desc = xilinx_vdma_alloc_tx_descriptor(chan); | 949 | desc = xilinx_vdma_alloc_tx_descriptor(chan); |
947 | if (!desc) | 950 | if (!desc) |