Skip to content

Commit 7a29ca3

Browse files
committed
mmc: dw_mmc-rockchip: Just set default sample value for legacy mode
.set_ios() is called from .resume() as well. For SDIO device which sets keep-power-in-suspend, nothing should be changed after resuming, as well as sample tuning value, since this value is tuned already. So we should not overwrite it with the default value. Change-Id: I18974f28d7a2253fd151817a5a3e4105c2e976b3 Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
1 parent abaf16c commit 7a29ca3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/mmc/host/dw_mmc-rockchip.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ static void dw_mci_rk3288_set_ios(struct dw_mci *host, struct mmc_ios *ios)
7676
}
7777

7878
/* Make sure we use phases which we can enumerate with */
79-
if (!IS_ERR(priv->sample_clk))
79+
if (!IS_ERR(priv->sample_clk) && ios->timing <= MMC_TIMING_SD_HS)
8080
clk_set_phase(priv->sample_clk, priv->default_sample_phase);
8181
}
8282

0 commit comments

Comments
 (0)