]> Git Repo - linux.git/commitdiff
mmc: sdhci-pci: CaFe has broken card detection
authorDaniel Drake <[email protected]>
Tue, 3 Jul 2012 22:13:39 +0000 (23:13 +0100)
committerChris Ball <[email protected]>
Sun, 22 Jul 2012 19:25:46 +0000 (15:25 -0400)
At http://dev.laptop.org/ticket/11980 we have determined that the
Marvell CaFe SDHCI controller reports bad card presence during
resume. It reports that no card is present even when it is.
This is a regression -- resume worked back around 2.6.37.

Around 400ms after resuming, a "card inserted" interrupt is
generated, at which point it starts reporting presence.

Work around this hardware oddity by setting the
SDHCI_QUIRK_BROKEN_CARD_DETECTION flag.
Thanks to Chris Ball for helping with diagnosis.

Signed-off-by: Daniel Drake <[email protected]>
[stable@: please apply to 3.0+]
Cc: <[email protected]>
Signed-off-by: Chris Ball <[email protected]>
drivers/mmc/host/sdhci-pci.c

index 69ef0beae104f3a83d4a36277b129e20ba5db207..504da715a41ae30f3e5670ff305801167ee60935 100644 (file)
@@ -157,6 +157,7 @@ static const struct sdhci_pci_fixes sdhci_ene_714 = {
 static const struct sdhci_pci_fixes sdhci_cafe = {
        .quirks         = SDHCI_QUIRK_NO_SIMULT_VDD_AND_POWER |
                          SDHCI_QUIRK_NO_BUSY_IRQ |
+                         SDHCI_QUIRK_BROKEN_CARD_DETECTION |
                          SDHCI_QUIRK_BROKEN_TIMEOUT_VAL,
 };
 
This page took 0.054009 seconds and 4 git commands to generate.