Shawn Guo 505a8680b7 mmc: sdhci: query card presence from cd-gpio before asking SDHCI
Call mmc_gpio_get_cd() to query card presence from cd-gpio before
asking SDHCI.  The rationale behind this change is that flag
SDHCI_QUIRK_BROKEN_CARD_DETECTION is designed for SDHCI controller to
tell that SDHCI_PRESENT_STATE is broken, and it should be used for this
case only.  So when cd-gpio is being used, the controller should set
the flag to tell that SDHCI_PRESENT_STATE is not available.

However, the existing code will skip checking cd-gpio as long as flag
SDHCI_QUIRK_BROKEN_CARD_DETECTION is set.  Change the querying order
between cd-gpio and SDHCI to support the rationale above.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
2013-02-11 12:51:23 -05:00
..
2012-12-12 11:45:16 -08:00
2012-11-28 12:28:18 -08:00
2012-11-28 12:28:18 -08:00
2012-11-28 12:28:18 -08:00
2012-10-10 10:58:42 +09:00
2012-11-28 12:28:18 -08:00
2012-11-28 12:28:18 -08:00
2012-11-28 12:28:18 -08:00
2009-03-24 21:30:03 +01:00
2012-12-06 13:54:44 -05:00
2012-12-12 11:45:16 -08:00
2012-12-12 11:45:16 -08:00
2012-11-28 12:28:18 -08:00
2012-11-28 12:28:18 -08:00
2009-10-01 16:11:15 -07:00
2012-11-28 12:28:18 -08:00
2012-12-11 13:13:55 -08:00
2012-11-28 12:28:18 -08:00
2012-12-11 13:13:55 -08:00
2012-11-28 12:28:18 -08:00
2012-12-11 13:13:55 -08:00
2012-12-11 13:13:55 -08:00
2012-12-11 13:13:55 -08:00
2012-11-28 12:28:18 -08:00
2012-12-06 13:55:13 -05:00
2012-12-11 13:13:55 -08:00
2012-11-28 12:28:18 -08:00
2012-11-28 12:28:18 -08:00
2012-11-28 12:28:18 -08:00
2012-12-06 13:55:03 -05:00
2012-11-28 12:28:18 -08:00
2007-07-26 01:53:31 +02:00