diff options
author | Timo Teras <timo.teras@solidboot.com> | 2006-11-02 13:43:27 -0500 |
---|---|---|
committer | Pierre Ossman <drzeus@drzeus.cx> | 2006-11-09 01:23:54 -0500 |
commit | 63ef731aa6a81e286de78dcc92241d123424ed39 (patch) | |
tree | 5bc9e64c7169300d1e586cda7c403cd66524c534 | |
parent | 25a122fd0d28b48782b9524a85895573e7ccf304 (diff) |
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>
-rw-r--r-- | drivers/mmc/mmc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index ec8168ac75b1..766bc54406e5 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c | |||
@@ -475,7 +475,7 @@ static u32 mmc_select_voltage(struct mmc_host *host, u32 ocr) | |||
475 | if (bit) { | 475 | if (bit) { |
476 | bit -= 1; | 476 | bit -= 1; |
477 | 477 | ||
478 | ocr = 3 << bit; | 478 | ocr &= 3 << bit; |
479 | 479 | ||
480 | host->ios.vdd = bit; | 480 | host->ios.vdd = bit; |
481 | mmc_set_ios(host); | 481 | mmc_set_ios(host); |