Linus Walleij f5a106d9e2 ARM: 6642/1: mmci: calculate remaining bytes at error correctly
The MMCIDATACNT register contain the number of byte left at error
not the number of words, so loose the << 2 thing. Further if CRC
fails on the first block, we may end up with a negative number
of transferred bytes which is not good, and the formula was in
wrong order.

Signed-off-by: Linus Walleij <linus.walleij@stericsson.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2011-01-27 22:06:12 +00:00
..
2010-11-01 15:38:34 -04:00
2008-12-16 14:58:17 +01:00
2009-03-24 21:30:03 +01:00
2010-12-24 16:00:17 +01:00
2009-10-01 16:11:15 -07:00
2011-01-08 23:52:32 -05:00