summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHosung Kim <hosung0.kim@samsung.com>2012-07-23 17:33:17 +0900
committerJohn Stultz <john.stultz@linaro.org>2016-02-16 13:51:08 -0800
commitff4a11fdd0f8862f98d2cbc72fdb4fa30172a4d0 (patch)
treea9356281f8788b4d48bb55ae9971419164fcd285
parentc284cce930c8173e1856f4e546dfcf1001dbfd55 (diff)
mmc: sdio: Fix sdio_reset_comm for sync
mmc_sdio_init_card function is doing necessary initialization Change-Id: I7d2e432b2af8a76267378acba07e3e4e8fd1e6bc Signed-off-by: Hosung Kim <hosung0.kim@samsung.com>
-rw-r--r--drivers/mmc/core/sdio.c38
1 files changed, 0 insertions, 38 deletions
diff --git a/drivers/mmc/core/sdio.c b/drivers/mmc/core/sdio.c
index 231c97248add..cc93152f82c6 100644
--- a/drivers/mmc/core/sdio.c
+++ b/drivers/mmc/core/sdio.c
@@ -1246,44 +1246,6 @@ int sdio_reset_comm(struct mmc_card *card)
if (err)
goto err;
- if (mmc_host_is_spi(host)) {
- err = mmc_spi_set_crc(host, use_spi_crc);
- if (err)
- goto err;
- }
-
- if (!mmc_host_is_spi(host)) {
- err = mmc_send_relative_addr(host, &card->rca);
- if (err)
- goto err;
- mmc_set_bus_mode(host, MMC_BUSMODE_PUSHPULL);
- }
- if (!mmc_host_is_spi(host)) {
- err = mmc_select_card(card);
- if (err)
- goto err;
- }
-
- /*
- * Switch to high-speed (if supported).
- */
- err = sdio_enable_hs(card);
- if (err > 0)
- mmc_sd_go_highspeed(card);
- else if (err)
- goto err;
-
- /*
- * Change to the card's maximum speed.
- */
- mmc_set_clock(host, mmc_sdio_get_max_clock(card));
-
- err = sdio_enable_4bit_bus(card);
- if (err > 0)
- mmc_set_bus_width(host, MMC_BUS_WIDTH_4);
- else if (err)
- goto err;
-
mmc_release_host(host);
return 0;
err: