mmc: allow upper layers to know immediately if card has been removed
commitd30495048892980e5d453328d1cc9343b3f7e917
authorAdrian Hunter <adrian.hunter@intel.com>
Mon, 28 Nov 2011 14:22:00 +0000 (28 16:22 +0200)
committerChris Ball <cjb@laptop.org>
Thu, 12 Jan 2012 04:58:43 +0000 (11 23:58 -0500)
treeeff2ac501e38bad357c837eb6bf2835f7e83eba8
parent482fce997e143a8d5429406fe066d31aa76ef70a
mmc: allow upper layers to know immediately if card has been removed

Add a function mmc_detect_card_removed() which upper layers can use to
determine immediately if a card has been removed. This function should
be called after an I/O request fails so that all queued I/O requests
can be errored out immediately instead of waiting for the card device
to be removed.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Acked-by: Sujit Reddy Thumma <sthumma@codeaurora.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/core.c
drivers/mmc/core/core.h
drivers/mmc/core/mmc.c
drivers/mmc/core/sd.c
drivers/mmc/core/sdio.c
include/linux/mmc/card.h
include/linux/mmc/core.h
include/linux/mmc/host.h