Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e8120ad1 authored by Philip Rakity's avatar Philip Rakity Committed by Chris Ball
Browse files

mmc: sdhci: print SD Command and CAPABILITY_1 when dumping registers



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: default avatarPhilip Rakity <prakity@marvell.com>
Reviewed-by: default avatarChris Ball <cjb@laptop.org>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent 04566831
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
@@ -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",
	printk(KERN_DEBUG DRIVER_NAME ": AC12 err: 0x%08x | Slot int: 0x%08x\n",
		sdhci_readw(host, SDHCI_ACMD12_ERR),
		sdhci_readw(host, SDHCI_ACMD12_ERR),
		sdhci_readw(host, SDHCI_SLOT_INT_STATUS));
		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),
		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));
		sdhci_readl(host, SDHCI_MAX_CURRENT));


	if (host->flags & SDHCI_USE_ADMA)
	if (host->flags & SDHCI_USE_ADMA)
+1 −1
Original line number Original line Diff line number Diff line
@@ -165,7 +165,7 @@
#define  SDHCI_CAN_VDD_180	0x04000000
#define  SDHCI_CAN_VDD_180	0x04000000
#define  SDHCI_CAN_64BIT	0x10000000
#define  SDHCI_CAN_64BIT	0x10000000


/* 44-47 reserved for more caps */
#define SDHCI_CAPABILITIES_1	0x44


#define SDHCI_MAX_CURRENT	0x48
#define SDHCI_MAX_CURRENT	0x48