We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94d2901 commit 201e90aCopy full SHA for 201e90a
drivers/mmc/core/core.c
@@ -1120,23 +1120,7 @@ struct device_node *mmc_of_find_child_device(struct mmc_host *host,
1120
u32 mmc_select_voltage(struct mmc_host *host, u32 ocr)
1121
{
1122
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
+
1140
if (!mmc_card_uhs2(host) && host->caps2 & MMC_CAP2_FULL_PWR_CYCLE) {
1141
bit = ffs(ocr) - 1;
1142
ocr &= 3 << bit;
0 commit comments