From: Bastian Hecht Date: Fri, 19 Oct 2012 10:15:35 +0000 (+0200) Subject: mtd: sh_flctl: Add DMA capabilty X-Git-Tag: v3.8-rc1~47^2~65 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=83738d87e3a0a4096e1419a65b8228130d183df6;p=pandora-kernel.git 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 Reviewed-by: Guennadi Liakhovetski Signed-off-by: Artem Bityutskiy --- Reading git-diff-tree failed