MMC: Do not set unsupported bits in OCR response
The card might go to inactive state (according to specification), if there are unsupported bits set in the OCR. Signed-off-by: Timo Teras <timo.teras@solidboot.com> Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
This commit is contained in:
parent
25a122fd0d
commit
63ef731aa6
|
@ -475,7 +475,7 @@ static u32 mmc_select_voltage(struct mmc_host *host, u32 ocr)
|
|||
if (bit) {
|
||||
bit -= 1;
|
||||
|
||||
ocr = 3 << bit;
|
||||
ocr &= 3 << bit;
|
||||
|
||||
host->ios.vdd = bit;
|
||||
mmc_set_ios(host);
|
||||
|
|
Loading…
Reference in New Issue