From: Ulf Hansson Date: Mon, 6 Feb 2012 09:42:39 +0000 (+0100) Subject: mmc: core: Detect card removal on I/O error X-Git-Tag: v3.4-rc1~49^2~37 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0cc9cf99326926fd76f77645c48d16d647802eb;p=pandora-kernel.git mmc: core: Detect card removal on I/O error To prevent I/O as soon as possible at card removal, a new detect work is re-scheduled without a delay to let a rescan remove the card device as soon as possible. Additionally, MMC_CAP2_DETECT_ON_ERR can now be used to handle "slowly" removed cards that a scheduled detect work did not detect as removed. To prevent further I/O requests for these lingering removed cards, check if card has been removed and then schedule a detect work to properly remove it. Signed-off-by: Ulf Hansson Reviewed-by: Namjae Jeon Acked-by: Linus Walleij Signed-off-by: Chris Ball --- Reading git-diff-tree failed