aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/mmc/core/sd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mmc/core/sd.c b/drivers/mmc/core/sd.c
index 25b937294130..a230e7f9d77a 100644
--- a/drivers/mmc/core/sd.c
+++ b/drivers/mmc/core/sd.c
@@ -306,6 +306,9 @@ static int mmc_read_switch(struct mmc_card *card)
306 goto out; 306 goto out;
307 } 307 }
308 308
309 if (status[13] & UHS_SDR50_BUS_SPEED)
310 card->sw_caps.hs_max_dtr = 50000000;
311
309 if (card->scr.sda_spec3) { 312 if (card->scr.sda_spec3) {
310 card->sw_caps.sd3_bus_mode = status[13]; 313 card->sw_caps.sd3_bus_mode = status[13];
311 314
@@ -348,9 +351,6 @@ static int mmc_read_switch(struct mmc_card *card)
348 } 351 }
349 352
350 card->sw_caps.sd3_curr_limit = status[7]; 353 card->sw_caps.sd3_curr_limit = status[7];
351 } else {
352 if (status[13] & 0x02)
353 card->sw_caps.hs_max_dtr = 50000000;
354 } 354 }
355 355
356out: 356out: