commit | 006cac8262987981fb10a0360726875b48123b73 | [log] [tgz] |
---|---|---|
author | Ulf Hansson <ulf.hansson@linaro.org> | Tue Feb 14 09:17:37 2017 +0100 |
committer | Ulf Hansson <ulf.hansson@linaro.org> | Tue Feb 14 09:17:37 2017 +0100 |
tree | 034fd5326d8fb452ca08fa442be2458ba5f94bc8 | |
parent | efff8e7879b8b7f8a077f495262f0bb9cfaa0b06 [diff] | |
parent | 3d4ef329757cfd5e0b23cce97cdeca7e2df89c99 [diff] |
Merge branch 'fixes' into next
diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c index e01e70c..ad1089c 100644 --- a/drivers/mmc/core/mmc.c +++ b/drivers/mmc/core/mmc.c
@@ -1740,10 +1740,10 @@ err = mmc_select_hs400(card); if (err) goto free_card; - } else if (mmc_card_hs(card)) { + } else { /* Select the desired bus width optionally */ err = mmc_select_bus_width(card); - if (err > 0) { + if (err > 0 && mmc_card_hs(card)) { err = mmc_select_hs_ddr(card); if (err) goto free_card;