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