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: http://git.lede-project.org./?a=commitdiff_plain;h=63ef731aa6a81e286de78dcc92241d123424ed39;p=openwrt%2Fstaging%2Fblogic.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);