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)
committermgross <mark.gross@intel.com>
Wed, 9 Nov 2011 20:25:27 +0000 (12:25 -0800)
commit3774f8482ed7b2b8b971f7f1d706666bc4a61bc7
treed89d2871a6cdaa38c6dc4d5a9c8ce317169ff542
parent1ac67bc9313145f92bdbd0d94e0eb7eb9ad04aa0
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.

Change-Id: If118a4bcbb0e57a7d95b5e40d662fca87fdcba7f
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