diff options
author | Linus Walleij <linus.walleij@stericsson.com> | 2011-01-27 19:44:34 +0300 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-01-28 01:06:12 +0300 |
commit | f5a106d9e2a5d947e106c3caace373ded1a695ed (patch) | |
tree | 495864e9dccb92ea383e2d6608c4f291989d8c29 /fs/jfs | |
parent | bffb276fffc93000e05a19ee0bdee844dff6a88d (diff) | |
download | linux-f5a106d9e2a5d947e106c3caace373ded1a695ed.tar.xz |
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>
Diffstat (limited to 'fs/jfs')
0 files changed, 0 insertions, 0 deletions