aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Cohen <david.a.cohen@linux.intel.com>2013-10-29 13:58:26 -0400
committerChris Ball <chris@printf.net>2014-01-13 13:03:18 -0500
commit13868bf20f2f2c305f96e23620b024e167d6f9cb (patch)
tree11b34288e2009f38e31bdb49052300f59c5f8be2
parente3ec3a3d11adf33c2e6ead1642b7e601b7a1b2df (diff)
mmc: sdhci: add quirk for broken HS200 support
This patch defines a quirk for platforms unable to enable HS200 support. Signed-off-by: David Cohen <david.a.cohen@linux.intel.com> Reviewed-by: Chuanxiao Dong <chuanxiao.dong@intel.com> Acked-by: Dong Aisheng <b29396@freescale.com> Cc: stable <stable@vger.kernel.org> # [3.13] Signed-off-by: Chris Ball <chris@printf.net>
-rw-r--r--drivers/mmc/host/sdhci.c3
-rw-r--r--include/linux/mmc/sdhci.h2
2 files changed, 4 insertions, 1 deletions
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
index cc00bed3e200..ec3eb30845c7 100644
--- a/drivers/mmc/host/sdhci.c
+++ b/drivers/mmc/host/sdhci.c
@@ -3016,7 +3016,8 @@ int sdhci_add_host(struct sdhci_host *host)
3016 /* SD3.0: SDR104 is supported so (for eMMC) the caps2 3016 /* SD3.0: SDR104 is supported so (for eMMC) the caps2
3017 * field can be promoted to support HS200. 3017 * field can be promoted to support HS200.
3018 */ 3018 */
3019 mmc->caps2 |= MMC_CAP2_HS200; 3019 if (!(host->quirks2 & SDHCI_QUIRK2_BROKEN_HS200))
3020 mmc->caps2 |= MMC_CAP2_HS200;
3020 } else if (caps[1] & SDHCI_SUPPORT_SDR50) 3021 } else if (caps[1] & SDHCI_SUPPORT_SDR50)
3021 mmc->caps |= MMC_CAP_UHS_SDR50; 3022 mmc->caps |= MMC_CAP_UHS_SDR50;
3022 3023
diff --git a/include/linux/mmc/sdhci.h b/include/linux/mmc/sdhci.h
index 3e781b8c0be7..362927c48f97 100644
--- a/include/linux/mmc/sdhci.h
+++ b/include/linux/mmc/sdhci.h
@@ -98,6 +98,8 @@ struct sdhci_host {
98#define SDHCI_QUIRK2_CARD_ON_NEEDS_BUS_ON (1<<4) 98#define SDHCI_QUIRK2_CARD_ON_NEEDS_BUS_ON (1<<4)
99/* Controller has a non-standard host control register */ 99/* Controller has a non-standard host control register */
100#define SDHCI_QUIRK2_BROKEN_HOST_CONTROL (1<<5) 100#define SDHCI_QUIRK2_BROKEN_HOST_CONTROL (1<<5)
101/* Controller does not support HS200 */
102#define SDHCI_QUIRK2_BROKEN_HS200 (1<<6)
101 103
102 int irq; /* Device IRQ */ 104 int irq; /* Device IRQ */
103 void __iomem *ioaddr; /* Mapped address */ 105 void __iomem *ioaddr; /* Mapped address */