From: Jerry Huang Date: Fri, 23 Nov 2012 09:25:03 +0000 (+0800) Subject: mmc: sdhci-of-esdhc: support commands with busy response expecting TC X-Git-Tag: Ubuntu-5.2.0-15.16~16719^2~27 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=3cf38833c7fc72b4f4757fc5d0b4cd43ac192e55;p=mirror_ubuntu-eoan-kernel.git mmc: sdhci-of-esdhc: support commands with busy response expecting TC The IP versions older than 2.3 didn't support commands with busy response which expect the TC bit set. But after the VVN2.3, eSDHC IP has supported it. Signed-off-by: Jerry Huang Signed-off-by: Chris Ball --- diff --git a/drivers/mmc/host/sdhci-of-esdhc.c b/drivers/mmc/host/sdhci-of-esdhc.c index 63d219f57cae..cfabc43a4ff2 100644 --- a/drivers/mmc/host/sdhci-of-esdhc.c +++ b/drivers/mmc/host/sdhci-of-esdhc.c @@ -177,6 +177,9 @@ static void esdhc_of_platform_init(struct sdhci_host *host) vvn = (vvn & SDHCI_VENDOR_VER_MASK) >> SDHCI_VENDOR_VER_SHIFT; if (vvn == VENDOR_V_22) host->quirks2 |= SDHCI_QUIRK2_HOST_NO_CMD23; + + if (vvn > VENDOR_V_22) + host->quirks &= ~SDHCI_QUIRK_NO_BUSY_IRQ; } static struct sdhci_ops sdhci_esdhc_ops = {