We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 51f4ce8 commit 9d2ade3Copy full SHA for 9d2ade3
1 file changed
drivers/mmc/core/core.c
@@ -2300,10 +2300,11 @@ void mmc_rescan(struct work_struct *work)
2300
* while initializing the legacy SD interface. Therefore, let's start
2301
* with UHS-II for now.
2302
*/
2303
- if (!mmc_attach_sd_uhs2(host)) {
2304
- mmc_release_host(host);
2305
- goto out;
2306
- }
+ if (host->caps2 & MMC_CAP2_SD_UHS2)
+ if (!mmc_attach_sd_uhs2(host)) {
+ mmc_release_host(host);
+ goto out;
2307
+ }
2308
2309
for (i = 0; i < ARRAY_SIZE(freqs); i++) {
2310
unsigned int freq = freqs[i];
0 commit comments