We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ef2386 commit c45a413Copy full SHA for c45a413
1 file changed
drivers/mmc/core/core.c
@@ -2268,10 +2268,11 @@ void mmc_rescan(struct work_struct *work)
2268
* while initializing the legacy SD interface. Therefore, let's start
2269
* with UHS-II for now.
2270
*/
2271
- if (!mmc_attach_sd_uhs2(host)) {
2272
- mmc_release_host(host);
2273
- goto out;
2274
- }
+ if (host->caps2 & MMC_CAP2_SD_UHS2)
+ if (!mmc_attach_sd_uhs2(host)) {
+ mmc_release_host(host);
+ goto out;
2275
+ }
2276
2277
for (i = 0; i < ARRAY_SIZE(freqs); i++) {
2278
unsigned int freq = freqs[i];
0 commit comments