diff options
-rw-r--r-- | drivers/mmc/core/quirks.c | 12 |
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) | |||
49 | card->quirks |= data; | 49 | card->quirks |= data; |
50 | } | 50 | } |
51 | 51 | ||
52 | #ifndef SDIO_VENDOR_ID_TI | ||
53 | #define SDIO_VENDOR_ID_TI 0x0097 | ||
54 | #endif | ||
55 | |||
56 | #ifndef SDIO_DEVICE_ID_TI_WL1271 | ||
57 | #define SDIO_DEVICE_ID_TI_WL1271 0x4076 | ||
58 | #endif | ||
59 | |||
52 | static const struct mmc_fixup mmc_fixup_methods[] = { | 60 | static const struct mmc_fixup mmc_fixup_methods[] = { |
53 | /* by default sdio devices are considered CLK_GATING broken */ | 61 | /* by default sdio devices are considered CLK_GATING broken */ |
54 | /* good cards will be whitelisted as they are tested */ | 62 | /* good cards will be whitelisted as they are tested */ |
55 | { SDIO_ANY_ID, SDIO_ANY_ID, | 63 | { SDIO_ANY_ID, SDIO_ANY_ID, |
56 | add_quirk_for_sdio_devices, MMC_QUIRK_BROKEN_CLK_GATING } | 64 | add_quirk_for_sdio_devices, MMC_QUIRK_BROKEN_CLK_GATING }, |
65 | { SDIO_VENDOR_ID_TI, SDIO_DEVICE_ID_TI_WL1271, | ||
66 | remove_quirk, MMC_QUIRK_BROKEN_CLK_GATING }, | ||
57 | { 0 } | 67 | { 0 } |
58 | }; | 68 | }; |
59 | 69 | ||