mmc: atmel-mci: correct sg buffer size evaluation
authorLudovic Desroches <ludovic.desroches@atmel.com>
Thu, 11 Aug 2011 15:25:47 +0000 (15:25 +0000)
committerChris Ball <cjb@laptop.org>
Wed, 26 Oct 2011 19:43:26 +0000 (15:43 -0400)
commit341fa4c3affe1171005597847a86e4c26dea8bb1
treee248b1ba0d88f1d1b4fb4e3c3b75627d38fc1420
parent1ebbe3d31fd96865b4d4874f3c74fef0e386fb79
mmc: atmel-mci: correct sg buffer size evaluation

Assuming that a sg buffer size is a page size is false so use sg_dma_len.
A 4096 bytes can be required with two 2048-bytes sg buffer.

Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/atmel-mci.c