Commit e6f29a8d authored by Michal Miroslaw's avatar Michal Miroslaw Committed by Chris Ball

mmc: fix detection of memory part of SD-combo card with broken SDIO

In case of failure, mmc_attach_sdio() will power off the SD bus.
Power it up and reinitialize before trying SD memory detection.
Reported-by: default avatarSahitya Tummala <stummala@codeaurora.org>
Signed-off-by: default avatarMichał Mirosław <mirq-linux@rere.qmqm.pl>
Reviewed-by: default avatarChris Ball <cjb@laptop.org>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent 080bc977
...@@ -1569,6 +1569,11 @@ void mmc_rescan(struct work_struct *work) ...@@ -1569,6 +1569,11 @@ void mmc_rescan(struct work_struct *work)
* Try SDMEM (but not MMC) even if SDIO * Try SDMEM (but not MMC) even if SDIO
* is broken. * is broken.
*/ */
mmc_power_up(host);
sdio_reset(host);
mmc_go_idle(host);
mmc_send_if_cond(host, host->ocr_avail);
if (mmc_send_app_op_cond(host, 0, &ocr)) if (mmc_send_app_op_cond(host, 0, &ocr))
goto out_fail; goto out_fail;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment