Skip to content
Commit 1ff2575b authored by Ulf Hansson's avatar Ulf Hansson
Browse files

mmc: core: Check for non-removable cards earlier in the error path



_mmc_detect_card_removed() validates that the card is removable, but when
being called via the bus_ops ->detect() callbacks, the validation is
redundant as it's already done in mmc_rescan().

Move the validation of a removable card to the mmc_detect_card_removed()
API, which is where it's applicable, to allow the blk error recovery path
to get the response a bit earlier.

Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent 8dede18e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment