diff options
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, | |||
1057 | blk_queue_logical_block_size(md->queue.queue, 512); | 1057 | blk_queue_logical_block_size(md->queue.queue, 512); |
1058 | set_capacity(md->disk, size); | 1058 | set_capacity(md->disk, size); |
1059 | 1059 | ||
1060 | if (mmc_host_cmd23(card->host) && | 1060 | if (mmc_host_cmd23(card->host)) { |
1061 | mmc_card_mmc(card)) | 1061 | if (mmc_card_mmc(card) || |
1062 | md->flags |= MMC_BLK_CMD23; | 1062 | (mmc_card_sd(card) && |
1063 | card->scr.cmds & SD_SCR_CMD23_SUPPORT)) | ||
1064 | md->flags |= MMC_BLK_CMD23; | ||
1065 | } | ||
1063 | 1066 | ||
1064 | if (mmc_card_mmc(card) && | 1067 | if (mmc_card_mmc(card) && |
1065 | md->flags & MMC_BLK_CMD23 && | 1068 | md->flags & MMC_BLK_CMD23 && |