summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLucas Stach <l.stach@pengutronix.de>2020-05-11 18:49:57 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2020-05-12 09:47:37 +0200
commitad6b2870602d5f895b092d3098250a0ff9d088a2 (patch)
treeae5949f20c683b8f308d17323ab394df56aebf6f
parentf27f4b817737c5c3c0fe33ac629fd6aff765b1cb (diff)
downloadbarebox-ad6b2870602d5f895b092d3098250a0ff9d088a2.tar.gz
barebox-ad6b2870602d5f895b092d3098250a0ff9d088a2.tar.xz
mci: stm32_sdmmc2: move command timeout errors to debug level
Command timeouts are sometimes a normal operating condition (for example when probing whether the connected card is SD or MMC), so we don't want to print an error message for all of them. Move those messages to the debug level, the MCI core will print some more meaningful messages on most command errors anyways. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--drivers/mci/stm32_sdmmc2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mci/stm32_sdmmc2.c b/drivers/mci/stm32_sdmmc2.c
index de96f09744..3ce3bb0f89 100644
--- a/drivers/mci/stm32_sdmmc2.c
+++ b/drivers/mci/stm32_sdmmc2.c
@@ -367,7 +367,7 @@ static int stm32_sdmmc2_end_cmd(struct stm32_sdmmc2_priv *priv,
/* Check status */
if (status & SDMMC_STA_CTIMEOUT) {
- dev_err(priv->dev, "%s: error SDMMC_STA_CTIMEOUT (0x%x) for cmd %d\n",
+ dev_dbg(priv->dev, "%s: error SDMMC_STA_CTIMEOUT (0x%x) for cmd %d\n",
__func__, status, cmd->cmdidx);
return -ETIMEDOUT;
}