]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerChris Ball <cjb@laptop.org>
Thu, 12 Jan 2012 04:58:43 +0000 (23:58 -0500)
commit905a474b8ec9bf9aec83e942a9a03bc45a46740a
treeeff2ac501e38bad357c837eb6bf2835f7e83eba8
parentb5a0d015d6c339142c77a0decfe3c7dd4b525637
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