9
0
Fork 0

mci: fix high capacity detection

Whether a card is high capacity is checked in
sd_send_op_cond/mmc_send_op_cond. Remove the wrong check in
mmc_change_freq which wrongly recognizes some eMMC flash
as high capacity.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2012-02-08 13:03:24 +01:00
parent 58cc0eb274
commit 4b8a61dbfd
1 changed files with 0 additions and 3 deletions

View File

@ -414,9 +414,6 @@ static int mmc_change_freq(struct device_d *mci_dev)
return err;
}
if (ext_csd[212] || ext_csd[213] || ext_csd[214] || ext_csd[215])
mci->high_capacity = 1;
cardtype = ext_csd[EXT_CSD_CARD_TYPE] & EXT_CSD_CARD_TYPE_MASK;
err = mci_switch(mci_dev, EXT_CSD_CMD_SET_NORMAL, EXT_CSD_HS_TIMING, 1);