Skip to content

Commit 5622ff1

Browse files
Joel FernandesVinod Koul
authored andcommitted
dma: edma: Remove limits on number of slots
With this series, this check is no longer required and we shouldn't need to reject drivers DMA'ing more than the MAX number of slots. Signed-off-by: Joel Fernandes <joelf@ti.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
1 parent b267b3b commit 5622ff1

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

‎drivers/dma/edma.c‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -287,12 +287,6 @@ static struct dma_async_tx_descriptor *edma_prep_slave_sg(
287287
return NULL;
288288
}
289289

290-
if (sg_len > MAX_NR_SG) {
291-
dev_err(dev, "Exceeded max SG segments %d > %d\n",
292-
sg_len, MAX_NR_SG);
293-
return NULL;
294-
}
295-
296290
edesc = kzalloc(sizeof(*edesc) + sg_len *
297291
sizeof(edesc->pset[0]), GFP_ATOMIC);
298292
if (!edesc) {

0 commit comments

Comments
 (0)