summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/core/host.c
diff options
context:
space:
mode:
authorPierre Tardy <tardyp@gmail.com>2011-02-06 19:03:47 +0100
committerChris Ball <cjb@laptop.org>2011-03-15 13:48:35 -0400
commitdb9935000d95ae3f9702b7ff6ac0eef2319d8772 (patch)
tree86f75ca6ec0b73c728f19b0dd43e8702bef448bc /drivers/mmc/core/host.c
parent57f0adc7eaaf4315d568e72069dbe48aa7e20995 (diff)
downloadblackbird-op-linux-db9935000d95ae3f9702b7ff6ac0eef2319d8772.tar.gz
blackbird-op-linux-db9935000d95ae3f9702b7ff6ac0eef2319d8772.zip
mmc: add MMC_QUIRK_BROKEN_CLK_GATING
Some sdio card are not following sdio standard, and do not work when the sdio bus's clock is gated. To keep functionnality for all legacy driver, we turn this quirk on for every sdio card. Drivers needs to disable the quirk manually when someone verifies that their supported card works with clock gating. Signed-off-by: Pierre Tardy <tardyp@gmail.com> Acked-by: Ohad Ben-Cohen <ohad@wizery.com> Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/core/host.c')
-rw-r--r--drivers/mmc/core/host.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/mmc/core/host.c b/drivers/mmc/core/host.c
index b3ac6c5bc5c6..461e6a17fb90 100644
--- a/drivers/mmc/core/host.c
+++ b/drivers/mmc/core/host.c
@@ -160,10 +160,7 @@ static bool mmc_host_may_gate_card(struct mmc_card *card)
* gate the clock, because there is somebody out there that may still
* be using it.
*/
- if (mmc_card_sdio(card))
- return false;
-
- return true;
+ return !(card->quirks & MMC_QUIRK_BROKEN_CLK_GATING);
}
/**
OpenPOWER on IntegriCloud