Skip to content

Commit 201e90a

Browse files
committed
igaf what volt u support u better off work in 1.8v
1 parent 94d2901 commit 201e90a

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

drivers/mmc/core/core.c

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1120,23 +1120,7 @@ struct device_node *mmc_of_find_child_device(struct mmc_host *host,
11201120
u32 mmc_select_voltage(struct mmc_host *host, u32 ocr)
11211121
{
11221122
int bit;
1123-
1124-
/*
1125-
* Sanity check the voltages that the card claims to
1126-
* support.
1127-
*/
1128-
if (ocr & 0x7F) {
1129-
dev_warn(mmc_dev(host),
1130-
"card claims to support voltages below defined range\n");
1131-
ocr &= ~0x7F;
1132-
}
1133-
1134-
ocr &= host->ocr_avail;
1135-
if (!ocr) {
1136-
dev_warn(mmc_dev(host), "no support for card's volts\n");
1137-
return 0;
1138-
}
1139-
1123+
11401124
if (!mmc_card_uhs2(host) && host->caps2 & MMC_CAP2_FULL_PWR_CYCLE) {
11411125
bit = ffs(ocr) - 1;
11421126
ocr &= 3 << bit;

0 commit comments

Comments
 (0)