diff options
| author | Sahitya Tummala <stummala@codeaurora.org> | 2015-09-28 15:54:21 +0530 |
|---|---|---|
| committer | Subhash Jadavani <subhashj@codeaurora.org> | 2016-05-31 15:27:32 -0700 |
| commit | ae4bb021f88b8c13be8b12a6bcfacff52d2d0bd6 (patch) | |
| tree | c701183d36fa49f52acc4a820219f9d01b7dce4a /drivers/mmc | |
| parent | 06ddb05074e204e336d39d0ae18975e9ce0c0d65 (diff) | |
mmc: sdhci-msm-ice: add crypto register dump for debug
Dump crypto related register information during error for
debugging purpose.
Change-Id: I8976e8c0b5e9bda910634464202578dbacd7666e
Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
Diffstat (limited to 'drivers/mmc')
| -rw-r--r-- | drivers/mmc/host/sdhci-msm-ice.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/mmc/host/sdhci-msm-ice.c b/drivers/mmc/host/sdhci-msm-ice.c index a4840dbc2e80..7b9516e7d451 100644 --- a/drivers/mmc/host/sdhci-msm-ice.c +++ b/drivers/mmc/host/sdhci-msm-ice.c @@ -135,6 +135,7 @@ int sdhci_msm_ice_init(struct sdhci_host *host) pr_err("%s: ice init timedout after %d ms\n", mmc_hostname(host->mmc), SDHCI_MSM_ICE_COMPLETION_TIMEOUT_MS); + sdhci_msm_ice_print_regs(host); return -ETIMEDOUT; } @@ -259,6 +260,7 @@ int sdhci_msm_ice_reset(struct sdhci_host *host) pr_err("%s: ice reset timedout after %d ms\n", mmc_hostname(host->mmc), SDHCI_MSM_ICE_COMPLETION_TIMEOUT_MS); + sdhci_msm_ice_print_regs(host); return -ETIMEDOUT; } @@ -299,6 +301,7 @@ int sdhci_msm_ice_resume(struct sdhci_host *host) pr_err("%s: ice resume timedout after %d ms\n", mmc_hostname(host->mmc), SDHCI_MSM_ICE_COMPLETION_TIMEOUT_MS); + sdhci_msm_ice_print_regs(host); return -ETIMEDOUT; } @@ -359,3 +362,12 @@ int sdhci_msm_ice_get_status(struct sdhci_host *host, int *ice_status) } return 0; } + +void sdhci_msm_ice_print_regs(struct sdhci_host *host) +{ + struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); + struct sdhci_msm_host *msm_host = pltfm_host->priv; + + if (msm_host->ice.vops->debug) + msm_host->ice.vops->debug(msm_host->ice.pdev); +} |
