From 560063c2dfd423172a7b03e5ff82f11e4398a691 Mon Sep 17 00:00:00 2001 From: Christoph Muellner Date: Mon, 29 Apr 2019 12:01:03 +0200 Subject: dw_mmc: Print error message on error. During a board bringup we observed random hangs in SPL, which turned out to be caused by communication errors with an SD card. However, the driver did not say a single character and neither did the upper layers. This patch changes the driver to print a short but precise error message if there is a communication problem with the SD card. Signed-off-by: Christoph Muellner --- drivers/mmc/dw_mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/dw_mmc.c b/drivers/mmc/dw_mmc.c index 93a836eac3..dea4976d35 100644 --- a/drivers/mmc/dw_mmc.c +++ b/drivers/mmc/dw_mmc.c @@ -134,7 +134,7 @@ static int dwmci_data_transfer(struct dwmci_host *host, struct mmc_data *data) mask = dwmci_readl(host, DWMCI_RINTSTS); /* Error during data transfer. */ if (mask & (DWMCI_DATA_ERR | DWMCI_DATA_TOUT)) { - debug("%s: DATA ERROR!\n", __func__); + pr_err("%s: data error or timeout!\n", __func__); ret = -EINVAL; break; } -- cgit v1.2.3