diff options
author | Christoph Muellner <christoph.muellner@theobroma-systems.com> | 2019-04-29 12:01:03 +0200 |
---|---|---|
committer | Christoph Muellner <christoph.muellner@theobroma-systems.com> | 2019-04-29 12:09:07 +0200 |
commit | 560063c2dfd423172a7b03e5ff82f11e4398a691 (patch) | |
tree | 308293bf4c4013c0ffdcba4ca51a39aef9024195 | |
parent | 1807cdf0ddadff57a7b094f25661c0b1199cd5f5 (diff) |
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 <christoph.muellner@theobroma-systems.com>
-rw-r--r-- | drivers/mmc/dw_mmc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |