diff options
author | Stefan Nilsson XK <stefan.xk.nilsson@stericsson.com> | 2011-09-15 17:50:38 +0200 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2011-10-26 16:32:03 -0400 |
commit | 44669034815a7ad263542ac605c581a10b22d146 (patch) | |
tree | e11820c9044f92a85d0efbb752f35673d92b20fc /drivers/mmc/core/sd.c | |
parent | 9a0da648ff3a5020406ac7784eb3b519014f66f6 (diff) | |
download | blackbird-op-linux-44669034815a7ad263542ac605c581a10b22d146.tar.gz blackbird-op-linux-44669034815a7ad263542ac605c581a10b22d146.zip |
mmc: core: Set correct bus mode before card init
Earlier all cards where initiated with bus mode set as OPENDRAIN, and then
later switched to PUSHPULL. According to the MMC/SD/SDIO specifications
only MMC cards use OPENDRAIN during init. For both SD and SDIO the bus
mode shall be PUSHPULL before attempting to init the card.
The consequence of having incorrect bus mode can lead to not being able
to detect the card. Therefore the default behavior have now been changed
to PUSHPULL in mmc_power_up, and will only be temporarily switched when
trying to attach or init a MMC card.
Signed-off-by: Stefan Nilsson XK <stefan.xk.nilsson@stericsson.com>
Signed-off-by: Ulf HANSSON <ulf.hansson@stericsson.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/core/sd.c')
-rw-r--r-- | drivers/mmc/core/sd.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/mmc/core/sd.c b/drivers/mmc/core/sd.c index 4c281a4bf058..342b18c4afcb 100644 --- a/drivers/mmc/core/sd.c +++ b/drivers/mmc/core/sd.c @@ -929,8 +929,6 @@ static int mmc_sd_init_card(struct mmc_host *host, u32 ocr, err = mmc_send_relative_addr(host, &card->rca); if (err) return err; - - mmc_set_bus_mode(host, MMC_BUSMODE_PUSHPULL); } if (!oldcard) { |