Commit 2a10539c authored by Federico Vaga's avatar Federico Vaga

sw:drv: accept the maximum DMA write length

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 3fdabb7a
...@@ -455,7 +455,7 @@ static struct dma_async_tx_descriptor *gn412x_dma_prep_slave_sg( ...@@ -455,7 +455,7 @@ static struct dma_async_tx_descriptor *gn412x_dma_prep_slave_sg(
dma_addr_t phys; dma_addr_t phys;
if (direction == DMA_MEM_TO_DEV && if (direction == DMA_MEM_TO_DEV &&
sg_dma_len(sg) >= GN412X_DMA_MAX_SEG_W) { sg_dma_len(sg) > GN412X_DMA_MAX_SEG_W) {
dev_err(&chan->dev->device, dev_err(&chan->dev->device,
"Maximum write transfer size %d, got %d on transfer %d\n", "Maximum write transfer size %d, got %d on transfer %d\n",
GN412X_DMA_MAX_SEG_W, sg_dma_len(sg), i); GN412X_DMA_MAX_SEG_W, sg_dma_len(sg), i);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment