]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/mmc/host/sdhci.c
sdhci: Add quirk for controllers that need small delays for PIO
[linux-2.6-omap-h63xx.git] / drivers / mmc / host / sdhci.c
index 75d0ecbce10c9857bed947d154bdde16955b3334..cd6dab34ba54d21f046d21874f050092e5ce65fd 100644 (file)
@@ -336,6 +336,9 @@ static void sdhci_transfer_pio(struct sdhci_host *host)
                mask = ~0;
 
        while (sdhci_readl(host, SDHCI_PRESENT_STATE) & mask) {
+               if (host->quirks & SDHCI_QUIRK_PIO_NEEDS_DELAY)
+                       udelay(100);
+
                if (host->data->flags & MMC_DATA_READ)
                        sdhci_read_block_pio(host);
                else