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>
(cherry picked from commit d1fe0762f3
)
5.4-rM2-2.2.x-imx-squashed
parent
0a9ba0f9d9
commit
04c3f0a875
|
@ -109,6 +109,9 @@ void sdhci_dumpregs(struct sdhci_host *host)
|
|||
}
|
||||
}
|
||||
|
||||
if (host->ops->dump_vendor_regs)
|
||||
host->ops->dump_vendor_regs(host);
|
||||
|
||||
SDHCI_DUMP("============================================\n");
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(sdhci_dumpregs);
|
||||
|
|
|
@ -647,6 +647,7 @@ struct sdhci_ops {
|
|||
void (*voltage_switch)(struct sdhci_host *host);
|
||||
void (*adma_write_desc)(struct sdhci_host *host, void **desc,
|
||||
dma_addr_t addr, int len, unsigned int cmd);
|
||||
void (*dump_vendor_regs)(struct sdhci_host *host);
|
||||
};
|
||||
|
||||
#ifdef CONFIG_MMC_SDHCI_IO_ACCESSORS
|
||||
|
|
Loading…
Reference in New Issue