mmc: allow upper layers to know immediately if card has been removed
authorAdrian Hunter <adrian.hunter@intel.com>
Mon, 28 Nov 2011 14:22:00 +0000 (16:22 +0200)
committerGrazvydas Ignotas <notasas@gmail.com>
Sun, 7 Jun 2015 23:12:03 +0000 (02:12 +0300)
commit73c60edc281379381e980b7f2b5e1d9a63338336
treea951abc78a1eef23aec7dc6856c34705842cb681
parente3dd65edfdc75243b1ea7f7aaf5283f6bca4bda7
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