]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mmc: block: allow get_card_status() to return error status
authorRussell King - ARM Linux <linux@arm.linux.org.uk>
Mon, 20 Jun 2011 19:10:08 +0000 (20:10 +0100)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:11:06 +0000 (14:11 +0200)
commit382e4b12696c18d98e1b8de3c7a84362b2cf722e
tree21f665065f24541a165d3a497716254fb20b6eae
parentb6537ac7829ca67734d83a8b926b8a0dfc520654
mmc: block: allow get_card_status() to return error status

If the MMC_SEND_STATUS command is not successful, we should not return
a zero status word, but instead allow the caller to know positively
that an error occurred.

Convert the open-coded get_card_status() to use the helper function,
and provide definitions for the card state field.

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
include/linux/mmc/mmc.h