diff options
author | Philipp Tomsich <philipp.tomsich@theobroma-systems.com> | 2016-04-08 01:08:07 +0200 |
---|---|---|
committer | Klaus Goger <klaus.goger@theobroma-systems.com> | 2016-09-18 13:45:15 +0200 |
commit | 94086e92c335836b4573ba95b82689b4faeb5027 (patch) | |
tree | 7f3342e4794d7a6de086f989da2ec99931d2909e /drivers | |
parent | 3107262b564318ef55bb5e308fe18a9edff08c80 (diff) |
mmc: call MMC reset before probing for MMC after failed SD probe
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mmc/mmc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index 8b2e6069ea..4bb3fe05a2 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -1642,6 +1642,12 @@ int mmc_start_init(struct mmc *mmc) /* If the command timed out, we check for an MMC card */ if (err == TIMEOUT) { + err = mmc->cfg->ops->init(mmc); + + mmc->ddr_mode = 0; + mmc_set_bus_width(mmc, 1); + mmc_set_clock(mmc, 1); + err = mmc_send_op_cond(mmc); if (err) { |