]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mmc: sdhci-pci: CaFe has broken card detection
authorDaniel Drake <dsd@laptop.org>
Tue, 3 Jul 2012 22:13:39 +0000 (23:13 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Aug 2012 15:31:26 +0000 (08:31 -0700)
commitc5b5af98489f4db8025baee2fc0cae7dd0d19ac3
tree617aca696969d41a9f12101a1f4ae40860a75a1e
parentf1377fddb346729aa2fe9cdbfc54aaf2ca463bd5
mmc: sdhci-pci: CaFe has broken card detection

commit 55fc05b7414274f17795cd0e8a3b1546f3649d5e upstream.

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 <dsd@laptop.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mmc/host/sdhci-pci.c