Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mmc: sdhci-msm: Introduce new ops to dump vendor specific registers

Introduce new sdhci ops to dump vendor specific registers in the
sdhci_dumpregs during error.

Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
Signed-off-by: Sarthak Garg <sartgarg@codeaurora.org>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/1590139950-7288-8-git-send-email-sartgarg@codeaurora.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

authored by

Sarthak Garg and committed by
Ulf Hansson
d1fe0762 03591160

+4
+3
drivers/mmc/host/sdhci.c
··· 111 111 } 112 112 } 113 113 114 + if (host->ops->dump_vendor_regs) 115 + host->ops->dump_vendor_regs(host); 116 + 114 117 SDHCI_DUMP("============================================\n"); 115 118 } 116 119 EXPORT_SYMBOL_GPL(sdhci_dumpregs);
+1
drivers/mmc/host/sdhci.h
··· 650 650 unsigned int length); 651 651 void (*request_done)(struct sdhci_host *host, 652 652 struct mmc_request *mrq); 653 + void (*dump_vendor_regs)(struct sdhci_host *host); 653 654 }; 654 655 655 656 #ifdef CONFIG_MMC_SDHCI_IO_ACCESSORS