Skip to content

Commit

Permalink
mmc: sdio: Add high speed support to sdio_reset_comm()
Browse files Browse the repository at this point in the history
Signed-off-by: San Mehat <san@google.com>
  • Loading branch information
Daniel Chen authored and Steve Kondik committed Jan 12, 2010
1 parent 6a7c1f0 commit 6585a85
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion drivers/mmc/core/sdio.c
Expand Up @@ -527,7 +527,28 @@ int sdio_reset_comm(struct mmc_card *card)
goto err;
}

mmc_set_clock(host, card->cis.max_dtr);
/*
* Switch to high-speed (if supported).
*/
err = sdio_enable_hs(card);
if (err)
goto err;

/*
* Change to the card's maximum speed.
*/
if (mmc_card_highspeed(card)) {
/*
* The SDIO specification doesn't mention how
* the CIS transfer speed register relates to
* high-speed, but it seems that 50 MHz is
* mandatory.
*/
mmc_set_clock(host, 50000000);
} else {
mmc_set_clock(host, card->cis.max_dtr);
}

err = sdio_enable_wide(card);
if (err)
goto err;
Expand Down

0 comments on commit 6585a85

Please sign in to comment.