mmc: sdhci: Add response register to register dump
authorAdrian Hunter <adrian.hunter@intel.com>
Mon, 20 Mar 2017 17:50:40 +0000 (19:50 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 24 Apr 2017 19:41:31 +0000 (21:41 +0200)
Add response register to register dump.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Tested-by: Ludovic Desroches <ludovic.desroches@microchip.com>
drivers/mmc/host/sdhci.c

index 3b79247..49acbd5 100644 (file)
@@ -87,6 +87,13 @@ static void sdhci_dumpregs(struct sdhci_host *host)
        pr_err(DRIVER_NAME ": Cmd:      0x%08x | Max curr: 0x%08x\n",
               sdhci_readw(host, SDHCI_COMMAND),
               sdhci_readl(host, SDHCI_MAX_CURRENT));
+       pr_err(DRIVER_NAME ": Resp[0]:  0x%08x | Resp[1]:  0x%08x\n",
+                  sdhci_readl(host, SDHCI_RESPONSE),
+                  sdhci_readl(host, SDHCI_RESPONSE + 4));
+       pr_err(DRIVER_NAME ": Resp[2]:  0x%08x | Resp[3]:  0x%08x\n",
+                  sdhci_readl(host, SDHCI_RESPONSE + 8),
+                  sdhci_readl(host, SDHCI_RESPONSE + 12));
+
        pr_err(DRIVER_NAME ": Host ctl2: 0x%08x\n",
               sdhci_readw(host, SDHCI_HOST_CONTROL2));