Commit 6be918e0 authored by Russell King - ARM Linux's avatar Russell King - ARM Linux Committed by Ken Sumrall
Browse files

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.

Change-Id: Icfd6258af78a89c21abac386c556153fa3fac364
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Tested-by: default avatarPawel Moll <pawel.moll@arm.com>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent d5b9284a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment