diff options
author | Andrei Warkentin <andreiw@motorola.com> | 2011-05-24 00:06:38 +0400 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2011-05-26 00:49:03 +0400 |
commit | f0d89972b01798cf9d245dfa1cacfa0ee78a3593 (patch) | |
tree | a3e69fc95825971384798eac4281148db837f891 /drivers/mmc/card | |
parent | e89d456fcdde2df008c032bf928e69e628e07a28 (diff) | |
download | linux-f0d89972b01798cf9d245dfa1cacfa0ee78a3593.tar.xz |
mmc: core: Block CMD23 support for UHS104/SDXC cards.
SD cards operating at UHS104 or better support SET_BLOCK_COUNT.
Signed-off-by: Andrei Warkentin <andreiw@motorola.com>
Reviewed-by: Arindam Nath <arindam.nath@amd.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/card')
-rw-r--r-- | drivers/mmc/card/block.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c index a380accaba9a..71da5641e258 100644 --- a/drivers/mmc/card/block.c +++ b/drivers/mmc/card/block.c @@ -1057,9 +1057,12 @@ static struct mmc_blk_data *mmc_blk_alloc_req(struct mmc_card *card, blk_queue_logical_block_size(md->queue.queue, 512); set_capacity(md->disk, size); - if (mmc_host_cmd23(card->host) && - mmc_card_mmc(card)) - md->flags |= MMC_BLK_CMD23; + if (mmc_host_cmd23(card->host)) { + if (mmc_card_mmc(card) || + (mmc_card_sd(card) && + card->scr.cmds & SD_SCR_CMD23_SUPPORT)) + md->flags |= MMC_BLK_CMD23; + } if (mmc_card_mmc(card) && md->flags & MMC_BLK_CMD23 && |