aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
authorTimo Teras <timo.teras@solidboot.com>2006-11-02 13:43:27 -0500
committerPierre Ossman <drzeus@drzeus.cx>2006-11-09 01:23:54 -0500
commit63ef731aa6a81e286de78dcc92241d123424ed39 (patch)
tree5bc9e64c7169300d1e586cda7c403cd66524c534 /drivers/mmc
parent25a122fd0d28b48782b9524a85895573e7ccf304 (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>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/mmc.c2
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);