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-Url: https://git.stricted.de/?a=commitdiff_plain;h=63ef731aa6a81e286de78dcc92241d123424ed39;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.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);