mmc: sdhci: properly check card present state when quirk NO_CARD_NO_RESET is set
authorIvan T. Ivanov <ivan.ivanov@linaro.org>
Mon, 6 Jul 2015 12:16:21 +0000 (15:16 +0300)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 17 Aug 2015 09:32:44 +0000 (11:32 +0200)
commit135b0a284d9c2bcfb64a5f7d90c439ede8bc5e06
tree737f6be151e18e8d108710b6482f474e40809699
parentc31d22eb335d4e3d2016135038fac8daaa9708d6
mmc: sdhci: properly check card present state when quirk NO_CARD_NO_RESET is set

Controller could have both NO_CARD_NO_RESET and BROKEN_CARD_DETECTION
quirks set. Use sdhci_do_get_cd() when applying NO_CARD_NO_RESET, which
properly check for BROKEN_CARD_DETECTION quirk.

Signed-off-by: Ivan T. Ivanov <ivan.ivanov@linaro.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci.c