dma: edma: Remove limits on number of slots
authorJoel Fernandes <joelf@ti.com>
Thu, 29 Aug 2013 23:05:45 +0000 (18:05 -0500)
committerVinod Koul <vinod.koul@intel.com>
Wed, 4 Sep 2013 13:08:46 +0000 (18:38 +0530)
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>
drivers/dma/edma.c

index 9500720e4af4f30473637fe630746ea1816d3f10..ff50ff4c6a57148c3a015a6ba3ebb1c81f69c6f8 100644 (file)
@@ -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) {