mtd: sh_flctl: Add DMA capabilty
authorBastian Hecht <hechtb@googlemail.com>
Fri, 19 Oct 2012 10:15:35 +0000 (12:15 +0200)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Thu, 15 Nov 2012 13:37:50 +0000 (15:37 +0200)
commit83738d87e3a0a4096e1419a65b8228130d183df6
treec0a837ba214d479f4f1fa26476aef11d7da58751
parente8a9d8f31c592eea89f1b0d3fd425e7a96944e88
mtd: sh_flctl: Add DMA capabilty

The code probes if DMA channels can get allocated and tears them down at
removal/failure if needed.
If available it uses them to transfer the data part (not ECC). On
failure we fall back to PIO mode.

Based on Guennadi Liakhovetski's code from the sh_mmcif driver.

Signed-off-by: Bastian Hecht <hechtb@gmail.com>
Reviewed-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
drivers/mtd/nand/sh_flctl.c
include/linux/mtd/sh_flctl.h