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:
Pierre Ossman 2006-12-26 15:25:58 +01:00
commit 9c2c0af950
2 changed files with 11 additions and 7 deletions

View file

@ -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;