mmc: at91_mci: use DMA buffer for read
authorWolfgang Muees <wolfgang.mues@auerswald.de>
Fri, 5 Mar 2010 21:43:41 +0000 (13:43 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 6 Mar 2010 19:26:43 +0000 (11:26 -0800)
commit86ee26f5b0a889bf7e9f6351bbf01516d0686461
tree59c9cc05be531a10a09d7e4f005be274c34fa068
parent3780d90602dfef6df3d8b39b203d6bf7fb99f22a
mmc: at91_mci: use DMA buffer for read

Convert the read to use the DMA buffer as well.  The old code was doing
double-buffering DMA with the PDC; no way to make it work.  Replace it
with a single-PDC approach.  It also simplify things removing the need for
a pre_dma_read() function.

[nicolas.ferre@atmel.com coding style modifications]
Signed-off-by: Wolfgang Muees <wolfgang.mues@auerswald.de>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: Andrew Victor <avictor.za@gmail.com>
Cc: <linux-mmc@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/mmc/host/at91_mci.c