summaryrefslogtreecommitdiffstats
path: root/include/linux/mmc
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 /include/linux/mmc
parent57f0adc7eaaf4315d568e72069dbe48aa7e20995 (diff)
downloadop-kernel-dev-db9935000d95ae3f9702b7ff6ac0eef2319d8772.zip
op-kernel-dev-db9935000d95ae3f9702b7ff6ac0eef2319d8772.tar.gz
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 'include/linux/mmc')
-rw-r--r--include/linux/mmc/card.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mmc/card.h b/include/linux/mmc/card.h
index ad741385..adb4888 100644
--- a/include/linux/mmc/card.h
+++ b/include/linux/mmc/card.h
@@ -124,6 +124,7 @@ struct mmc_card {
/* for byte mode */
#define MMC_QUIRK_NONSTD_SDIO (1<<2) /* non-standard SDIO card attached */
/* (missing CIA registers) */
+#define MMC_QUIRK_BROKEN_CLK_GATING (1<<3) /* clock gating the sdio bus will make card fail */
unsigned int erase_size; /* erase size in sectors */
unsigned int erase_shift; /* if erase unit is power 2 */
OpenPOWER on IntegriCloud