aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShawn Lin <shawn.lin@rock-chips.com>2016-09-02 00:14:38 -0400
committerUlf Hansson <ulf.hansson@linaro.org>2016-09-26 15:31:36 -0400
commitd12d0cb1d7dc00605112bf1d5dcc157f2908a068 (patch)
tree1838e52f79a750363eacf31d0749a6456bec8d8f
parent3b2a067b98b45f7a7dafe21c34a3ae744c697f0f (diff)
mmc: dw_mmc: fix misleading error print if failing to do DMA transfer
The original log didn't figure out that we could still finish this transfer by PIO mode even if failing to use DMA. And it should be kept for debug level instead of error one. Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com> Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
-rw-r--r--drivers/mmc/host/dw_mmc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c
index 38099bafcd4c..c59a7b5c69a1 100644
--- a/drivers/mmc/host/dw_mmc.c
+++ b/drivers/mmc/host/dw_mmc.c
@@ -1057,8 +1057,10 @@ static int dw_mci_submit_data_dma(struct dw_mci *host, struct mmc_data *data)
1057 spin_unlock_irqrestore(&host->irq_lock, irqflags); 1057 spin_unlock_irqrestore(&host->irq_lock, irqflags);
1058 1058
1059 if (host->dma_ops->start(host, sg_len)) { 1059 if (host->dma_ops->start(host, sg_len)) {
1060 /* We can't do DMA */ 1060 /* We can't do DMA, try PIO for this one */
1061 dev_err(host->dev, "%s: failed to start DMA.\n", __func__); 1061 dev_dbg(host->dev,
1062 "%s: fall back to PIO mode for current transfer\n",
1063 __func__);
1062 return -ENODEV; 1064 return -ENODEV;
1063 } 1065 }
1064 1066