aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
authorJungseung Lee <js07.lee@samsung.com>2016-08-24 06:34:09 -0400
committerUlf Hansson <ulf.hansson@linaro.org>2016-09-26 15:31:14 -0400
commit67d35960f445176d5548c660a1b1708cad1c2042 (patch)
treecb2cf78e1a8108eb3597fef34f5759a97628a4ae /drivers/mmc
parentff026099d775c74548839f1d627eb0b2bec0b857 (diff)
mmc: core: Add error message when switching fails in mmc_select_hs()
The switch failure message in mmc_select_timing() had been removed since that is invalid: commit 0400ed0a083a ("mmc: core: remove the invalid message in mmc_select_timing") Now, in the case when mmc_select_hs() return error in mmc_select_timing(), there is nothing to print failure message. Let's make for mmc_select_hs() print message itself in the failure case. Signed-off-by: Jungseung Lee <js07.lee@samsung.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/core/mmc.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c
index f2d185cf8a8b..3486bc7fbb64 100644
--- a/drivers/mmc/core/mmc.c
+++ b/drivers/mmc/core/mmc.c
@@ -1029,6 +1029,10 @@ static int mmc_select_hs(struct mmc_card *card)
1029 err = mmc_switch_status(card); 1029 err = mmc_switch_status(card);
1030 } 1030 }
1031 1031
1032 if (err)
1033 pr_warn("%s: switch to high-speed failed, err:%d\n",
1034 mmc_hostname(card->host), err);
1035
1032 return err; 1036 return err;
1033} 1037}
1034 1038
@@ -1265,11 +1269,8 @@ static int mmc_select_hs400es(struct mmc_card *card)
1265 1269
1266 /* Switch card to HS mode */ 1270 /* Switch card to HS mode */
1267 err = mmc_select_hs(card); 1271 err = mmc_select_hs(card);
1268 if (err) { 1272 if (err)
1269 pr_err("%s: switch to high-speed failed, err:%d\n",
1270 mmc_hostname(host), err);
1271 goto out_err; 1273 goto out_err;
1272 }
1273 1274
1274 err = mmc_switch_status(card); 1275 err = mmc_switch_status(card);
1275 if (err) 1276 if (err)