]> git.baikalelectronics.ru Git - kernel.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>
Thu, 15 Nov 2012 13:37:50 +0000 (15:37 +0200)
commit5b6e92301e3a88578c188bc2970461c5032ea299
treec0a837ba214d479f4f1fa26476aef11d7da58751
parentfe0c630e7b5e7482d9d9bd0bfcb01e2794717961
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