mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 19:08:57 +09:00
ANDROID: mmc: sdio: Add high speed support to sdio_reset_comm()
Signed-off-by: San Mehat <san@google.com>
This commit is contained in:
committed by
Dmitry Shmidt
parent
7aa92ea46b
commit
48ed6faf71
@@ -1261,7 +1261,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;
|
||||
|
||||
Reference in New Issue
Block a user