aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host
diff options
context:
space:
mode:
authorFaiz Abbas <faiz_abbas@ti.com>2019-05-28 15:29:28 +0530
committerUlf Hansson <ulf.hansson@linaro.org>2019-06-10 17:11:09 +0200
commit7e24e28b79b3df4fb1db40f26c46e0a3480eede4 (patch)
treebb6a91b9e0a1ee6154f3ae60314672adf5ad28be /drivers/mmc/host
parentmmc: sdhci_am654: Improve whitespace utilisation with regmap_*() calls (diff)
downloadlinux-dev-7e24e28b79b3df4fb1db40f26c46e0a3480eede4.tar.xz
linux-dev-7e24e28b79b3df4fb1db40f26c46e0a3480eede4.zip
mmc: sdhci_am654: Print error message if the DLL fails to lock
Print an error message and return if DLL fails to lock. Signed-off-by: Faiz Abbas <faiz_abbas@ti.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/host')
-rw-r--r--drivers/mmc/host/sdhci_am654.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/mmc/host/sdhci_am654.c b/drivers/mmc/host/sdhci_am654.c
index 3c32d9fb6e1e..d0b20780dd0f 100644
--- a/drivers/mmc/host/sdhci_am654.c
+++ b/drivers/mmc/host/sdhci_am654.c
@@ -137,6 +137,11 @@ static void sdhci_am654_set_clock(struct sdhci_host *host, unsigned int clock)
ret = regmap_read_poll_timeout(sdhci_am654->base, PHY_STAT1,
val, val & DLLRDY_MASK, 1000,
1000000);
+ if (ret) {
+ dev_err(mmc_dev(host->mmc), "DLL failed to relock\n");
+ return;
+ }
+
sdhci_am654->dll_on = true;
}
}