]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: mmci: round down the bytes transferred on error
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 30 Jan 2011 21:06:53 +0000 (21:06 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 31 Jan 2011 10:53:37 +0000 (10:53 +0000)
commit006aadd30f0a7dad56eabb62fa158e8a9343a129
tree0427d88375de0be5f4f11dae661e5405d32d3431
parent7cd12b4611cfdfe5e54d44d9bfc9a37875628bb2
ARM: mmci: round down the bytes transferred on error

We should not report incomplete blocks on error.  Return the number of
bytes successfully transferred, rounded down to the nearest block.

Acked-by: Linus Walleij <linus.walleij@stericsson.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/mmc/host/mmci.c