From: Timo Teras Date: Thu, 2 Nov 2006 18:43:27 +0000 (+0100) Subject: MMC: Do not set unsupported bits in OCR response X-Git-Tag: firefly_0821_release~31522^2~20^2~129^2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=63ef731aa6a81e286de78dcc92241d123424ed39;p=firefly-linux-kernel-4.4.55.git 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 Signed-off-by: Pierre Ossman --- 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) if (bit) { bit -= 1; - ocr = 3 << bit; + ocr &= 3 << bit; host->ios.vdd = bit; mmc_set_ios(host);