mtd: nand/fsmc: Add DMA support
authorVipin Kumar <vipin.kumar@st.com>
Wed, 14 Mar 2012 06:17:18 +0000 (11:47 +0530)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Tue, 27 Mar 2012 00:00:24 +0000 (01:00 +0100)
commit4774fb0a48aacfec206e6d54ecf58706f6a5320a
tree073282f1f2514cb524019042fc081c62f5daec8c
parent604e75444fa82cfdcba339e3bd4da1dfd6947539
mtd: nand/fsmc: Add DMA support

The fsmc_nand driver uses cpu to read/write onto the device. This is inefficient
because of two reasons
- the cpu gets locked on AHB bus while reading from NAND
- the cpu is unnecessarily used when dma can do the job

This patch adds the support for accessing the device through DMA

Signed-off-by: Vipin Kumar <vipin.kumar@st.com>
Reviewed-by: Viresh Kumar <viresh.kumar@st.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/fsmc_nand.c
include/linux/mtd/fsmc.h