]> git.baikalelectronics.ru Git - kernel.git/commitdiff
mmc: sdhci-msm: Introduce new ops to dump vendor specific registers
authorSarthak Garg <sartgarg@codeaurora.org>
Fri, 22 May 2020 09:32:29 +0000 (15:02 +0530)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 28 May 2020 09:22:16 +0000 (11:22 +0200)
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>
drivers/mmc/host/sdhci.c
drivers/mmc/host/sdhci.h

index 70bc77dffb3470028a1bd69c93473c75ec0b63fc..52a492bd0ddd04c1884613f8e5e7e0253f90613a 100644 (file)
@@ -111,6 +111,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);
index d628ab6c5a6f777428ab97303a7f8fd59f96cc85..0008bbd27127336b233b96f8591d253b8268d619 100644 (file)
@@ -650,6 +650,7 @@ struct sdhci_ops {
                                         unsigned int length);
        void    (*request_done)(struct sdhci_host *host,
                                struct mmc_request *mrq);
+       void    (*dump_vendor_regs)(struct sdhci_host *host);
 };
 
 #ifdef CONFIG_MMC_SDHCI_IO_ACCESSORS