Skip to content

Commit

Permalink
MMC: Do not set unsupported bits in OCR response
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Timo Teras authored and Pierre Ossman committed Nov 9, 2006
1 parent 25a122f commit 63ef731
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mmc/mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 63ef731

Please sign in to comment.