File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments