]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Mon, 12 Nov 2012 15:17:42 +0000 (17:17 +0200)
commit7f629b7d19b36c94b159119d28c2ef982a76ee84
tree3d1906e1bb91806a123839d2e5414b68f43616bf
parentc18898140555b42a90ab31b56484cd9ecd5ba6fc
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