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:
Timo Teras 2006-11-02 19:43:27 +01:00 committed by Pierre Ossman
parent 25a122fd0d
commit 63ef731aa6
1 changed files with 1 additions and 1 deletions

View File

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