]> 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)
commit2d636737e5c1669a10b43238d61ed608606bb788
treee248b1ba0d88f1d1b4fb4e3c3b75627d38fc1420
parentfbdfd12324f2993a279739f3ef78d2efdf96710c
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