mmc: mediatek: change some dev_err to dev_dbg
authorChaotian Jing <chaotian.jing@mediatek.com>
Tue, 1 Dec 2015 12:12:34 +0000 (20:12 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 22 Dec 2015 10:32:17 +0000 (11:32 +0100)
there are too many error logs shown when use CMD21/CMD19 to do tune,
and it will appear at each resume time, print out so many logs to the
uart console cost too mush time. so change it to dev_dbg.

Signed-off-by: Chaotian Jing <chaotian.jing@mediatek.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/mtk-sd.c

index a5beb361824029dde0904b4b3172a80a06514bed..82a97ac4e956f64941e2a9890728ea9831844550 100644 (file)
@@ -972,7 +972,7 @@ static bool msdc_data_xfer_done(struct msdc_host *host, u32 events,
                if ((events & MSDC_INT_XFER_COMPL) && (!stop || !stop->error)) {
                        data->bytes_xfered = data->blocks * data->blksz;
                } else {
-                       dev_err(host->dev, "interrupt events: %x\n", events);
+                       dev_dbg(host->dev, "interrupt events: %x\n", events);
                        msdc_reset_hw(host);
                        host->error |= REQ_DAT_ERR;
                        data->bytes_xfered = 0;
@@ -982,10 +982,10 @@ static bool msdc_data_xfer_done(struct msdc_host *host, u32 events,
                        else if (events & MSDC_INT_DATCRCERR)
                                data->error = -EILSEQ;
 
-                       dev_err(host->dev, "%s: cmd=%d; blocks=%d",
+                       dev_dbg(host->dev, "%s: cmd=%d; blocks=%d",
                                __func__, mrq->cmd->opcode, data->blocks);
-                       dev_err(host->dev, "data_error=%d xfer_size=%d\n",
-                                       (int)data->error, data->bytes_xfered);
+                       dev_dbg(host->dev, "data_error=%d xfer_size=%d\n",
+                               (int)data->error, data->bytes_xfered);
                }
 
                msdc_data_xfer_next(host, mrq, data);