mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
mmc: add type field to cards
Split out the type of card into its own field as it hardly qualifies as a state. Signed-off-by: Pierre Ossman <[email protected]>
This commit is contained in:
parent
85a18ad93e
commit
9c2c0af950
2 changed files with 11 additions and 7 deletions
|
|
@ -980,7 +980,7 @@ static void mmc_discover_cards(struct mmc_host *host)
|
|||
card->state &= ~MMC_STATE_DEAD;
|
||||
|
||||
if (host->mode == MMC_MODE_SD) {
|
||||
mmc_card_set_sd(card);
|
||||
card->type = MMC_TYPE_SD;
|
||||
|
||||
cmd.opcode = SD_SEND_RELATIVE_ADDR;
|
||||
cmd.arg = 0;
|
||||
|
|
@ -1003,6 +1003,7 @@ static void mmc_discover_cards(struct mmc_host *host)
|
|||
}
|
||||
}
|
||||
} else {
|
||||
card->type = MMC_TYPE_MMC;
|
||||
cmd.opcode = MMC_SET_RELATIVE_ADDR;
|
||||
cmd.arg = card->rca << 16;
|
||||
cmd.flags = MMC_RSP_R1 | MMC_CMD_AC;
|
||||
|
|
|
|||
Loading…
Reference in a new issue