]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mmc: sdhci-of-esdhc: support command with busy response expecting for TC
authorJerry Huang <Chang-Ming.Huang@freescale.com>
Fri, 23 Nov 2012 09:25:03 +0000 (17:25 +0800)
committerChris Ball <cjb@laptop.org>
Tue, 4 Dec 2012 18:43:04 +0000 (13:43 -0500)
The IP versions older than 2.3 didn't support the command with busy response
which expect for TC bit set. But after the VVN2.3, eSDHC IP has supported it.

Signed-off-by: Jerry Huang <Chang-Ming.Huang@freescale.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/sdhci-of-esdhc.c

index 63d219f57caebcd3a4cd0216ec17aca2500cb257..cfabc43a4ff27af3271308216c49de9e604f4738 100644 (file)
@@ -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 = {