mmc: core: Remove unnecessary retry mechanism at SDIO attach
authorUlf Hansson <ulf.hansson@linaro.org>
Thu, 12 Sep 2013 14:38:56 +0000 (16:38 +0200)
committerlintao <lintao@rock-chips.com>
Fri, 7 Mar 2014 09:26:33 +0000 (17:26 +0800)
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>
drivers/mmc/core/sdio.c

index a3c6a00a177318274c607402a8b414a2dd22bbaa..0640de9333fa0e6bf3508e18ae1832816c13a561 100644 (file)
@@ -1196,17 +1196,9 @@ int mmc_attach_sdio(struct mmc_host *host)
                host->ocr |= R4_18V_PRESENT;
 
        err = mmc_sdio_init_card(host, host->ocr, NULL, 0);
-       if (err) {
-               if (err == -EAGAIN) {
-                       /*
-                        * Retry initialization with S18R set to 0.
-                        */
-                       host->ocr &= ~R4_18V_PRESENT;
-                       err = mmc_sdio_init_card(host, host->ocr, NULL, 0);
-               }
-               if (err)
-                       goto err;
-       }
+       if (err)
+               goto err;
+
        card = host->card;
 
        /*