mxs/dma: Enlarge the CCW descriptor area to 4 pages
authorMarek Vasut <marex@denx.de>
Tue, 4 Sep 2012 04:04:25 +0000 (06:04 +0200)
committerVinod Koul <vinod.koul@linux.intel.com>
Fri, 14 Sep 2012 03:01:47 +0000 (08:31 +0530)
commit5e97fa91492b4943f25228e08d24abb31e5bce50
tree02495f046ade4a1e99175ba7509ffb5a6b227c7f
parent8fccc5bfd7f83fd321db42bcad36e2d9fe13d65b
mxs/dma: Enlarge the CCW descriptor area to 4 pages

In case of a large SPI flash, the amount of DMA descriptors
available to the DMA driver is not large enough anymore. For
example 8MB SPI flash now needs 129 descriptors to be transfered
in one long read. There are currently 53 descriptors available in
one PAGE_SIZE-big block. Enlarge the allocated descriptor area to
four PAGE_SIZE blocks to fulfill such requirements.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Dan Williams <djbw@fb.com>
Cc: Fabio Estevam <fabio.estevam@freescale.com>
Cc: Shawn Guo <shawn.guo@linaro.org>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
drivers/dma/mxs-dma.c