Skip to content

Commit 13868bf

Browse files
David Cohencjb
authored andcommitted
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>
1 parent e3ec3a3 commit 13868bf

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

‎drivers/mmc/host/sdhci.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3016,7 +3016,8 @@ int sdhci_add_host(struct sdhci_host *host)
30163016
/* SD3.0: SDR104 is supported so (for eMMC) the caps2
30173017
* field can be promoted to support HS200.
30183018
*/
3019-
mmc->caps2 |= MMC_CAP2_HS200;
3019+
if (!(host->quirks2 & SDHCI_QUIRK2_BROKEN_HS200))
3020+
mmc->caps2 |= MMC_CAP2_HS200;
30203021
} else if (caps[1] & SDHCI_SUPPORT_SDR50)
30213022
mmc->caps |= MMC_CAP_UHS_SDR50;
30223023

‎include/linux/mmc/sdhci.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ struct sdhci_host {
9898
#define SDHCI_QUIRK2_CARD_ON_NEEDS_BUS_ON (1<<4)
9999
/* Controller has a non-standard host control register */
100100
#define SDHCI_QUIRK2_BROKEN_HOST_CONTROL (1<<5)
101+
/* Controller does not support HS200 */
102+
#define SDHCI_QUIRK2_BROKEN_HS200 (1<<6)
101103

102104
int irq; /* Device IRQ */
103105
void __iomem *ioaddr; /* Mapped address */

0 commit comments

Comments
 (0)