mmc: block: add checking of r/w command response
authorRussell King - ARM Linux <linux@arm.linux.org.uk>
Mon, 20 Jun 2011 19:10:49 +0000 (20:10 +0100)
committerTony Lin <tony.lin@freescale.com>
Thu, 1 Mar 2012 06:45:07 +0000 (14:45 +0800)
commitfdc7146f9f6dea954cf81e94fd24381c8efcf99c
treede843df16e5c6e427bbc91ff2dd4166e93eb1936
parent03c4a15db885a4518a9859705cd892f109137aa8
mmc: block: add checking of r/w command response

Check the status bits in the r/w command response for any errors.
If error bits are set, then we won't have seen any data transferred,
so it's pointless doing any further checking.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Tested-by: Pawel Moll <pawel.moll@arm.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/card/block.c