diff options
author | Stefan Roese <sr@denx.de> | 2017-06-23 05:05:49 -0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2017-07-03 01:06:46 -0400 |
commit | 82474dade7f4c60206609e7274591d159db105bf (patch) | |
tree | 773c921ebb87ae1266c082c4e82a352bcc04630c /drivers/dma/xilinx | |
parent | 65a5c3dd3e11225a0d0e0df97d23fa64ab2d4ed2 (diff) |
dmaengine: zynqmp_dma: Remove max len check in zynqmp_dma_prep_memcpy
Remove check for "len > ZYNQMP_DMA_MAX_TRANS_LEN" as its not needed.
If the length is larger, the transfer is split up into multiple parts
with the max descriptor length already.
Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Kedareswara rao Appana <appanad@xilinx.com>
Cc: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/xilinx')
-rw-r--r-- | drivers/dma/xilinx/zynqmp_dma.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/dma/xilinx/zynqmp_dma.c b/drivers/dma/xilinx/zynqmp_dma.c index 6d221e5c72ee..47f64192d2fd 100644 --- a/drivers/dma/xilinx/zynqmp_dma.c +++ b/drivers/dma/xilinx/zynqmp_dma.c | |||
@@ -794,9 +794,6 @@ static struct dma_async_tx_descriptor *zynqmp_dma_prep_memcpy( | |||
794 | 794 | ||
795 | chan = to_chan(dchan); | 795 | chan = to_chan(dchan); |
796 | 796 | ||
797 | if (len > ZYNQMP_DMA_MAX_TRANS_LEN) | ||
798 | return NULL; | ||
799 | |||
800 | desc_cnt = DIV_ROUND_UP(len, ZYNQMP_DMA_MAX_TRANS_LEN); | 797 | desc_cnt = DIV_ROUND_UP(len, ZYNQMP_DMA_MAX_TRANS_LEN); |
801 | 798 | ||
802 | spin_lock_bh(&chan->lock); | 799 | spin_lock_bh(&chan->lock); |