mmc: sunxi: change controller error info to debug level
authorIcenowy Zheng <icenowy@aosc.xyz>
Thu, 16 Mar 2017 13:29:03 +0000 (21:29 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 24 Apr 2017 19:41:48 +0000 (21:41 +0200)
The controller's errors are usually normal (for example, for MMC or SDIO
cards, some errors are expected to happen; and for boards without a
dedicated card detect pin the error info will even flood console and
hide other normal messages) and hard to understand.

Change their print level to debug, thus it won't be shown to generic
users.

Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sunxi-mmc.c

index 6ffcd2838272c3333e1fbfeac1d1c867d23f9239..0391c62cc99f883d9e7283dfe76de304e4207160 100644 (file)
@@ -489,7 +489,7 @@ static void sunxi_mmc_dump_errinfo(struct sunxi_mmc_host *host)
                                      cmd->opcode == SD_IO_RW_DIRECT))
                return;
 
-       dev_err(mmc_dev(host->mmc),
+       dev_dbg(mmc_dev(host->mmc),
                "smc %d err, cmd %d,%s%s%s%s%s%s%s%s%s%s !!\n",
                host->mmc->index, cmd->opcode,
                data ? (data->flags & MMC_DATA_WRITE ? " WR" : " RD") : "",