summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mmc/core/mmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c
index 00617646e708..99caaf85dd50 100644
--- a/drivers/mmc/core/mmc.c
+++ b/drivers/mmc/core/mmc.c
@@ -1711,7 +1711,7 @@ static int mmc_change_bus_speed(struct mmc_host *host, unsigned long *freq)
* for other timings we can simply do clock frequency change
*/
if (mmc_card_hs400(card) ||
- (*freq == MMC_HS200_MAX_DTR)) {
+ (!mmc_card_hs200(host->card) && *freq == MMC_HS200_MAX_DTR)) {
err = mmc_set_clock_bus_speed(card, *freq);
if (err) {
pr_err("%s: %s: failed (%d)to set bus and clock speed (freq=%lu)\n",