summaryrefslogtreecommitdiff
path: root/drivers/mmc/core/quirks.c
diff options
context:
space:
mode:
authorPierre Tardy <pierre.tardy@intel.com>2011-02-06 21:04:17 +0300
committerChris Ball <cjb@laptop.org>2011-03-15 20:48:37 +0300
commit12f8ef8fb21f3b410b28eb57fc79bfe71232512a (patch)
treed5ed082efdff2df02a0f276d6c7caf5e7717fe81 /drivers/mmc/core/quirks.c
parentdb9935000d95ae3f9702b7ff6ac0eef2319d8772 (diff)
downloadlinux-12f8ef8fb21f3b410b28eb57fc79bfe71232512a.tar.xz
mmc: remove BROKEN_CLK_GATING quirk for wl1271
This sdio card supports having its sdio clock shutdown. It is also not using the SDIO IRQ, but rather uses a side gpio irq. Signed-off-by: Pierre Tardy <tardyp@gmail.com> Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/core/quirks.c')
-rw-r--r--drivers/mmc/core/quirks.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/drivers/mmc/core/quirks.c b/drivers/mmc/core/quirks.c
index 890843129e3b..11118b74eb20 100644
--- a/drivers/mmc/core/quirks.c
+++ b/drivers/mmc/core/quirks.c
@@ -49,11 +49,21 @@ static void add_quirk_for_sdio_devices(struct mmc_card *card, int data)
card->quirks |= data;
}
+#ifndef SDIO_VENDOR_ID_TI
+#define SDIO_VENDOR_ID_TI 0x0097
+#endif
+
+#ifndef SDIO_DEVICE_ID_TI_WL1271
+#define SDIO_DEVICE_ID_TI_WL1271 0x4076
+#endif
+
static const struct mmc_fixup mmc_fixup_methods[] = {
/* by default sdio devices are considered CLK_GATING broken */
/* good cards will be whitelisted as they are tested */
{ SDIO_ANY_ID, SDIO_ANY_ID,
- add_quirk_for_sdio_devices, MMC_QUIRK_BROKEN_CLK_GATING }
+ add_quirk_for_sdio_devices, MMC_QUIRK_BROKEN_CLK_GATING },
+ { SDIO_VENDOR_ID_TI, SDIO_DEVICE_ID_TI_WL1271,
+ remove_quirk, MMC_QUIRK_BROKEN_CLK_GATING },
{ 0 }
};