aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2013-09-12 10:38:56 -0400
committerChris Ball <cjb@laptop.org>2013-10-30 20:26:27 -0400
commitec2ed7006263bd4224083aff7833bd791ac35d65 (patch)
tree9c1eb6324965a9db8452c64a684fd41a1a6b5f21
parent0f791fdad82a02af013e4fc8c385dc690080c366 (diff)
mmc: core: Remove unnecessary retry mechanism at SDIO attach
The retry and fallback mechanism when failing to switch to 1.8V signaling voltage is handled by the SDIO card init function. Thus we can remove the duplicated old code from the attach function. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Chris Ball <cjb@laptop.org>
-rw-r--r--drivers/mmc/core/sdio.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/drivers/mmc/core/sdio.c b/drivers/mmc/core/sdio.c
index 15cbc418c95f..26b13169156c 100644
--- a/drivers/mmc/core/sdio.c
+++ b/drivers/mmc/core/sdio.c
@@ -1175,17 +1175,9 @@ int mmc_attach_sdio(struct mmc_host *host)
1175 host->ocr |= R4_18V_PRESENT; 1175 host->ocr |= R4_18V_PRESENT;
1176 1176
1177 err = mmc_sdio_init_card(host, host->ocr, NULL, 0); 1177 err = mmc_sdio_init_card(host, host->ocr, NULL, 0);
1178 if (err) { 1178 if (err)
1179 if (err == -EAGAIN) { 1179 goto err;
1180 /* 1180
1181 * Retry initialization with S18R set to 0.
1182 */
1183 host->ocr &= ~R4_18V_PRESENT;
1184 err = mmc_sdio_init_card(host, host->ocr, NULL, 0);
1185 }
1186 if (err)
1187 goto err;
1188 }
1189 card = host->card; 1181 card = host->card;
1190 1182
1191 /* 1183 /*