From 687a2fd66937b55e729a64f9a042f28ec37630c3 Mon Sep 17 00:00:00 2001 From: Sorayukii Date: Fri, 5 Sep 2025 09:59:23 +0000 Subject: [PATCH] Revert "mmc: core: properly select voltage range without power cycle" This reverts commit 12cb55823302c751c044831e6fe1d082d546008e. Signed-off-by: Sorayukii --- drivers/mmc/core/core.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index bd853d69767a..a6fcd58c5635 100644 --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/core/core.c @@ -3123,13 +3123,7 @@ u32 mmc_select_voltage(struct mmc_host *host, u32 ocr) mmc_power_cycle(host, ocr); } else { bit = fls(ocr) - 1; - /* - * The bit variable represents the highest voltage bit set in - * the OCR register. - * To keep a range of 2 values (e.g. 3.2V/3.3V and 3.3V/3.4V), - * we must shift the mask '3' with (bit - 1). - */ - ocr &= 3 << (bit - 1); + ocr &= 3 << bit; if (bit != host->ios.vdd) dev_warn(mmc_dev(host), "exceeding card's volts\n"); }