sdhci: Print ADMA status and pointer on debug
authorBen Dooks <ben@simtec.co.uk>
Mon, 8 Jun 2009 22:33:52 +0000 (23:33 +0100)
committerPierre Ossman <pierre@ossman.eu>
Sat, 13 Jun 2009 20:43:01 +0000 (22:43 +0200)
If using ADMA, then we should print the ADMA error
and current pointer in sdhci_dumpregs() when any
debug is requested.

Signed-off-by: Ben Dooks <ben@simtec.co.uk>
Signed-off-by: Pierre Ossman <pierre@ossman.eu>
drivers/mmc/host/sdhci.c

index 1432a35..35789c6 100644 (file)
@@ -78,6 +78,11 @@ static void sdhci_dumpregs(struct sdhci_host *host)
                sdhci_readl(host, SDHCI_CAPABILITIES),
                sdhci_readl(host, SDHCI_MAX_CURRENT));
 
+       if (host->flags & SDHCI_USE_ADMA)
+               printk(KERN_DEBUG DRIVER_NAME ": ADMA Err: 0x%08x | ADMA Ptr: 0x%08x\n",
+                      readl(host->ioaddr + SDHCI_ADMA_ERROR),
+                      readl(host->ioaddr + SDHCI_ADMA_ADDRESS));
+
        printk(KERN_DEBUG DRIVER_NAME ": ===========================================\n");
 }