We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a63e454 commit a4664faCopy full SHA for a4664fa
1 file changed
drivers/mmc/core/core.c
@@ -2277,10 +2277,11 @@ void mmc_rescan(struct work_struct *work)
2277
* while initializing the legacy SD interface. Therefore, let's start
2278
* with UHS-II for now.
2279
*/
2280
- if (!mmc_attach_sd_uhs2(host)) {
2281
- mmc_release_host(host);
2282
- goto out;
2283
- }
+ if (host->caps2 & MMC_CAP2_SD_UHS2)
+ if (!mmc_attach_sd_uhs2(host)) {
+ mmc_release_host(host);
+ goto out;
2284
+ }
2285
2286
for (i = 0; i < ARRAY_SIZE(freqs); i++) {
2287
unsigned int freq = freqs[i];
0 commit comments