Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 13868bf2 authored by David Cohen's avatar David Cohen Committed by Chris Ball
Browse files

mmc: sdhci: add quirk for broken HS200 support



This patch defines a quirk for platforms unable to enable HS200 support.

Signed-off-by: default avatarDavid Cohen <david.a.cohen@linux.intel.com>
Reviewed-by: default avatarChuanxiao Dong <chuanxiao.dong@intel.com>
Acked-by: default avatarDong Aisheng <b29396@freescale.com>
Cc: stable <stable@vger.kernel.org> # [3.13]
Signed-off-by: default avatarChris Ball <chris@printf.net>
parent e3ec3a3d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3016,6 +3016,7 @@ int sdhci_add_host(struct sdhci_host *host)
		/* SD3.0: SDR104 is supported so (for eMMC) the caps2
		 * field can be promoted to support HS200.
		 */
		if (!(host->quirks2 & SDHCI_QUIRK2_BROKEN_HS200))
			mmc->caps2 |= MMC_CAP2_HS200;
	} else if (caps[1] & SDHCI_SUPPORT_SDR50)
		mmc->caps |= MMC_CAP_UHS_SDR50;
+2 −0
Original line number Diff line number Diff line
@@ -98,6 +98,8 @@ struct sdhci_host {
#define SDHCI_QUIRK2_CARD_ON_NEEDS_BUS_ON		(1<<4)
/* Controller has a non-standard host control register */
#define SDHCI_QUIRK2_BROKEN_HOST_CONTROL		(1<<5)
/* Controller does not support HS200 */
#define SDHCI_QUIRK2_BROKEN_HS200			(1<<6)

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