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