]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit00ee66b609321cf2707181e84908798ff6f69a0d
treee248b1ba0d88f1d1b4fb4e3c3b75627d38fc1420
parente77a64d1274c78348e9aeb0a7ab7b363b5702f96
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