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)
commit613b152c63e35095a929f9bb80441cbe91ff5e80
tree0427d88375de0be5f4f11dae661e5405d32d3431
parentccff9b51825b7335889b780bdf7de84ca803e291
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