dma: edma: Increase maximum SG limit to 20
authorJoel Fernandes <joelf@ti.com>
Mon, 23 Sep 2013 23:05:15 +0000 (18:05 -0500)
committerVinod Koul <vinod.koul@intel.com>
Mon, 21 Oct 2013 07:25:29 +0000 (12:55 +0530)
commit2abd5f1b97fce6e197be01d67a9567c7793c80d3
treebe4461d09afc0ed1dfe30a5484e8f75099334349
parentfd009035047941fe21622b09665423f1043f0507
dma: edma: Increase maximum SG limit to 20

davinci-pcm uses 16 as the no.of periods. With this, in EDMA we have to
allocate atleast 17 slots: 1 slot for channel, and 16 slots the periods.

Due to this, the MAX_NR_SG limitation causes problems, set it to 20 to make
cyclic DMA work when davinci-pcm is converted to use DMA Engine. Also add
a comment clarifying this.

Signed-off-by: Joel Fernandes <joelf@ti.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/edma.c