mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-06 00:39:48 +00:00
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>
This commit is contained in:
parent
65a5c3dd3e
commit
82474dade7
1 changed files with 0 additions and 3 deletions
|
@ -794,9 +794,6 @@ static struct dma_async_tx_descriptor *zynqmp_dma_prep_memcpy(
|
||||||
|
|
||||||
chan = to_chan(dchan);
|
chan = to_chan(dchan);
|
||||||
|
|
||||||
if (len > ZYNQMP_DMA_MAX_TRANS_LEN)
|
|
||||||
return NULL;
|
|
||||||
|
|
||||||
desc_cnt = DIV_ROUND_UP(len, ZYNQMP_DMA_MAX_TRANS_LEN);
|
desc_cnt = DIV_ROUND_UP(len, ZYNQMP_DMA_MAX_TRANS_LEN);
|
||||||
|
|
||||||
spin_lock_bh(&chan->lock);
|
spin_lock_bh(&chan->lock);
|
||||||
|
|
Loading…
Reference in a new issue