Skip to content

Commit 9d2ade3

Browse files
committed
mmc: core: Skip SD UHS-II enumeration on missing UHS2 cap
Fixes: 79daeb2 ("mmc: core: Prepare to support SD UHS-II cards") Signed-off-by: Janne Grunau <j@jannau.net>
1 parent 51f4ce8 commit 9d2ade3

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

drivers/mmc/core/core.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2300,10 +2300,11 @@ void mmc_rescan(struct work_struct *work)
23002300
* while initializing the legacy SD interface. Therefore, let's start
23012301
* with UHS-II for now.
23022302
*/
2303-
if (!mmc_attach_sd_uhs2(host)) {
2304-
mmc_release_host(host);
2305-
goto out;
2306-
}
2303+
if (host->caps2 & MMC_CAP2_SD_UHS2)
2304+
if (!mmc_attach_sd_uhs2(host)) {
2305+
mmc_release_host(host);
2306+
goto out;
2307+
}
23072308

23082309
for (i = 0; i < ARRAY_SIZE(freqs); i++) {
23092310
unsigned int freq = freqs[i];

0 commit comments

Comments
 (0)