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:
parent
58cc0eb274
commit
4b8a61dbfd
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue