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)
committerKen Sumrall <ksumrall@android.com>
Thu, 27 Oct 2011 00:15:27 +0000 (17:15 -0700)
commit2080390ad2f1a8c076a2405cb4a30060c77e6baf
tree7fca6e23379b183aa92e62d313f21d7e85466ad9
parent91d56b5cb51ceeb06c88e7557f7181827d721d0d
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