]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerChris Ball <cjb@laptop.org>
Wed, 20 Jul 2011 21:20:55 +0000 (17:20 -0400)
commit8293771ad2f4c0132c051966d9ed543e832cc0d6
treeedc0e825137eb395f372194ed451741d4f0e82eb
parenta3c532db9c7034f798e878a0767c3363aba8b51c
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