From: Anton Vorontsov Date: Mon, 16 Mar 2009 21:13:52 +0000 (+0300) Subject: sdhci: Add support for card-detection polling X-Git-Tag: v2.6.30-rc1~209^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68d1fb7e229c6f95be4fbbe3eb46b24e41184924;p=pandora-kernel.git sdhci: Add support for card-detection polling This patch adds SDHCI_QUIRK_BROKEN_CARD_DETECTION quirk. When specified, sdhci driver will set MMC_CAP_NEEDS_POLL MMC host capability, and won't enable card insert/remove interrupts. This is needed for hosts with unreliable card detection, such as FSL eSDHC. The original eSDHC driver was tring to "debounce" card-detection IRQs by reading present state and disabling particular interrupts. But with this debouncing scheme I noticed that sometimes we miss card insertion/removal events. Signed-off-by: Anton Vorontsov Signed-off-by: Pierre Ossman --- Reading git-diff-tree failed