Skip to content

Commit d1fe076

Browse files
Sarthak Gargstorulf
authored andcommitted
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 <[email protected]> Signed-off-by: Sarthak Garg <[email protected]> Acked-by: Adrian Hunter <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ulf Hansson <[email protected]>
1 parent 0359116 commit d1fe076

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

drivers/mmc/host/sdhci.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ void sdhci_dumpregs(struct sdhci_host *host)
111111
}
112112
}
113113

114+
if (host->ops->dump_vendor_regs)
115+
host->ops->dump_vendor_regs(host);
116+
114117
SDHCI_DUMP("============================================\n");
115118
}
116119
EXPORT_SYMBOL_GPL(sdhci_dumpregs);

drivers/mmc/host/sdhci.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -650,6 +650,7 @@ struct sdhci_ops {
650650
unsigned int length);
651651
void (*request_done)(struct sdhci_host *host,
652652
struct mmc_request *mrq);
653+
void (*dump_vendor_regs)(struct sdhci_host *host);
653654
};
654655

655656
#ifdef CONFIG_MMC_SDHCI_IO_ACCESSORS

0 commit comments

Comments
 (0)