]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
mmc: sdhci: print SD Command and CAPABILITY_1 when dumping registers
authorPhilip Rakity <prakity@marvell.com>
Tue, 30 Nov 2010 05:55:23 +0000 (00:55 -0500)
committerChris Ball <cjb@laptop.org>
Sun, 9 Jan 2011 03:48:03 +0000 (22:48 -0500)
More information should be shown when sdhci_dumpregs is called.
Knowing the command is useful for debugging, and Capability 1
is useful for SD v3.

Signed-off-by: Philip Rakity <prakity@marvell.com>
Reviewed-by: Chris Ball <cjb@laptop.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/sdhci.c
drivers/mmc/host/sdhci.h

index a25db426c91026ad4368d7e2ae0c700f28231a08..8a74fcbfe13b33d78dffd6438995a0441f38e945 100644 (file)
@@ -77,8 +77,11 @@ static void sdhci_dumpregs(struct sdhci_host *host)
        printk(KERN_DEBUG DRIVER_NAME ": AC12 err: 0x%08x | Slot int: 0x%08x\n",
                sdhci_readw(host, SDHCI_ACMD12_ERR),
                sdhci_readw(host, SDHCI_SLOT_INT_STATUS));
-       printk(KERN_DEBUG DRIVER_NAME ": Caps:     0x%08x | Max curr: 0x%08x\n",
+       printk(KERN_DEBUG DRIVER_NAME ": Caps:     0x%08x | Caps_1:   0x%08x\n",
                sdhci_readl(host, SDHCI_CAPABILITIES),
+               sdhci_readl(host, SDHCI_CAPABILITIES_1));
+       printk(KERN_DEBUG DRIVER_NAME ": Cmd:      0x%08x | Max curr: 0x%08x\n",
+               sdhci_readw(host, SDHCI_COMMAND),
                sdhci_readl(host, SDHCI_MAX_CURRENT));
 
        if (host->flags & SDHCI_USE_ADMA)
index e42d7f00c06050cfc25079c6b0a3e9942f2a66b4..1efe7dc5255b7e29df7ef33f2a0083fb9fa9b881 100644 (file)
 #define  SDHCI_CAN_VDD_180     0x04000000
 #define  SDHCI_CAN_64BIT       0x10000000
 
-/* 44-47 reserved for more caps */
+#define SDHCI_CAPABILITIES_1   0x44
 
 #define SDHCI_MAX_CURRENT      0x48