Skip to content

Commit

Permalink
dma: edma: Remove limits on number of slots
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Joel Fernandes authored and Vinod Koul committed Sep 4, 2013
1 parent b267b3b commit 5622ff1
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions drivers/dma/edma.c
Original file line number Diff line number Diff line change
Expand Up @@ -287,12 +287,6 @@ static struct dma_async_tx_descriptor *edma_prep_slave_sg(
return NULL;
}

if (sg_len > MAX_NR_SG) {
dev_err(dev, "Exceeded max SG segments %d > %d\n",
sg_len, MAX_NR_SG);
return NULL;
}

edesc = kzalloc(sizeof(*edesc) + sg_len *
sizeof(edesc->pset[0]), GFP_ATOMIC);
if (!edesc) {
Expand Down

0 comments on commit 5622ff1

Please sign in to comment.