Skip to content

Commit 9e5059d

Browse files
committed
igaf what volt u support u better off work in 1.8v
1 parent fc89550 commit 9e5059d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

drivers/mmc/core/core.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1141,18 +1141,18 @@ u32 mmc_select_voltage(struct mmc_host *host, u32 ocr)
11411141
bit = ffs(ocr) - 1;
11421142
ocr &= 3 << bit;
11431143
mmc_power_cycle(host, ocr);
1144-
} else {
1145-
bit = fls(ocr) - 1;
1144+
} //else {
1145+
// bit = fls(ocr) - 1;
11461146
/*
11471147
* The bit variable represents the highest voltage bit set in
11481148
* the OCR register.
11491149
* To keep a range of 2 values (e.g. 3.2V/3.3V and 3.3V/3.4V),
11501150
* we must shift the mask '3' with (bit - 1).
11511151
*/
1152-
ocr &= 3 << (bit - 1);
1153-
if (bit != host->ios.vdd)
1154-
dev_warn(mmc_dev(host), "exceeding card's volts\n");
1155-
}
1152+
// ocr &= 3 << (bit - 1);
1153+
// if (bit != host->ios.vdd)
1154+
// dev_warn(mmc_dev(host), "exceeding card's volts\n");
1155+
//}
11561156

11571157
return ocr;
11581158
}

0 commit comments

Comments
 (0)