diff options
author | Ulf Hansson <ulf.hansson@linaro.org> | 2017-02-14 09:17:37 +0100 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2017-02-14 09:17:37 +0100 |
commit | 006cac8262987981fb10a0360726875b48123b73 (patch) | |
tree | 034fd5326d8fb452ca08fa442be2458ba5f94bc8 /drivers/mmc | |
parent | mmc: Adding AUTO_BKOPS_EN bit set for Auto BKOPS support (diff) | |
parent | mmc: core: fix multi-bit bus width without high-speed mode (diff) | |
download | linux-006cac8262987981fb10a0360726875b48123b73.tar.xz linux-006cac8262987981fb10a0360726875b48123b73.zip |
Merge branch 'fixes' into next
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/core/mmc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c index e01e70c24ca2..ad1089c713e5 100644 --- a/drivers/mmc/core/mmc.c +++ b/drivers/mmc/core/mmc.c @@ -1740,10 +1740,10 @@ static int mmc_init_card(struct mmc_host *host, u32 ocr, 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; |