From: Linus Walleij Date: Thu, 27 Jan 2011 16:44:34 +0000 (+0100) Subject: ARM: 6642/1: mmci: calculate remaining bytes at error correctly X-Git-Tag: v2.6.38-rc3~2^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5a106d9e2a5d947e106c3caace373ded1a695ed;p=pandora-kernel.git 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 Signed-off-by: Russell King --- Reading git-diff-tree failed