]> git.karo-electronics.de Git - karo-tx-linux.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, 1 Dec 2011 18:59:42 +0000 (13:59 -0500)
commitbb7cec2f5c221143f2b6d0a3d539f271084010d9
tree382ee0f41685e74230e6fa950def44acbc2a81ab
parent6b376bc64d6763db71fef4907a852152606a6406
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