Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 307955
b: refs/heads/master
c: 10942aa
h: refs/heads/master
i:
  307953: 7dbe877
  307951: bab495c
v: v3
  • Loading branch information
Seungwon Jeon authored and Chris Ball committed May 9, 2012
1 parent 28a9af0 commit 2edd365
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 96cf5f02aee8bbeff38824b18b9ec583d687f846
refs/heads/master: 10942aa40a595d7ff8b4e90f8a762e816367cac3
12 changes: 7 additions & 5 deletions trunk/drivers/mmc/core/mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ static int mmc_select_powerclass(struct mmc_card *card,
*/
static int mmc_select_hs200(struct mmc_card *card)
{
int idx, err = 0;
int idx, err = -EINVAL;
struct mmc_host *host;
static unsigned ext_csd_bits[] = {
EXT_CSD_BUS_WIDTH_4,
Expand All @@ -744,10 +744,12 @@ static int mmc_select_hs200(struct mmc_card *card)
host = card->host;

if (card->ext_csd.card_type & EXT_CSD_CARD_TYPE_SDR_1_2V &&
host->caps2 & MMC_CAP2_HS200_1_2V_SDR)
if (mmc_set_signal_voltage(host, MMC_SIGNAL_VOLTAGE_120, 0))
err = mmc_set_signal_voltage(host,
MMC_SIGNAL_VOLTAGE_180, 0);
host->caps2 & MMC_CAP2_HS200_1_2V_SDR)
err = mmc_set_signal_voltage(host, MMC_SIGNAL_VOLTAGE_120, 0);

if (err && card->ext_csd.card_type & EXT_CSD_CARD_TYPE_SDR_1_8V &&
host->caps2 & MMC_CAP2_HS200_1_8V_SDR)
err = mmc_set_signal_voltage(host, MMC_SIGNAL_VOLTAGE_180, 0);

/* If fails try again during next card power cycle */
if (err)
Expand Down

0 comments on commit 2edd365

Please sign in to comment.