diff options
| -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 1d8409fcf155..c86dd7384d7d 100644 --- a/drivers/mmc/core/mmc.c +++ b/drivers/mmc/core/mmc.c | |||
| @@ -558,6 +558,8 @@ static int mmc_init_card(struct mmc_host *host, u32 ocr, | |||
| 558 | EXT_CSD_BUS_WIDTH, | 558 | EXT_CSD_BUS_WIDTH, |
| 559 | ext_csd_bits[idx][0]); | 559 | ext_csd_bits[idx][0]); |
| 560 | if (!err) { | 560 | if (!err) { |
| 561 | mmc_set_bus_width_ddr(card->host, | ||
| 562 | bus_width, MMC_SDR_MODE); | ||
| 561 | /* | 563 | /* |
| 562 | * If controller can't handle bus width test, | 564 | * If controller can't handle bus width test, |
| 563 | * use the highest bus width to maintain | 565 | * use the highest bus width to maintain |
| @@ -565,8 +567,6 @@ static int mmc_init_card(struct mmc_host *host, u32 ocr, | |||
| 565 | */ | 567 | */ |
| 566 | if (!(host->caps & MMC_CAP_BUS_WIDTH_TEST)) | 568 | if (!(host->caps & MMC_CAP_BUS_WIDTH_TEST)) |
| 567 | break; | 569 | break; |
| 568 | mmc_set_bus_width_ddr(card->host, | ||
| 569 | bus_width, MMC_SDR_MODE); | ||
| 570 | err = mmc_bus_test(card, bus_width); | 570 | err = mmc_bus_test(card, bus_width); |
| 571 | if (!err) | 571 | if (!err) |
| 572 | break; | 572 | break; |
