|
@@ -1029,6 +1029,10 @@ static int mmc_select_hs(struct mmc_card *card)
|
|
|
err = mmc_switch_status(card);
|
|
|
}
|
|
|
|
|
|
+ if (err)
|
|
|
+ pr_warn("%s: switch to high-speed failed, err:%d\n",
|
|
|
+ mmc_hostname(card->host), err);
|
|
|
+
|
|
|
return err;
|
|
|
}
|
|
|
|
|
@@ -1265,11 +1269,8 @@ static int mmc_select_hs400es(struct mmc_card *card)
|
|
|
|
|
|
/* Switch card to HS mode */
|
|
|
err = mmc_select_hs(card);
|
|
|
- if (err) {
|
|
|
- pr_err("%s: switch to high-speed failed, err:%d\n",
|
|
|
- mmc_hostname(host), err);
|
|
|
+ if (err)
|
|
|
goto out_err;
|
|
|
- }
|
|
|
|
|
|
err = mmc_switch_status(card);
|
|
|
if (err)
|