Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Link: https://lore.kernel.org/r/1618539454-182170-1-git-send-email-shawn.lin@rock-chips.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

authored by

Shawn Lin and committed by
Ulf Hansson
df4e1372 e614740a

+1 -1
+1 -1
drivers/mmc/host/dw_mmc-rockchip.c
··· 61 61 } 62 62 63 63 /* Make sure we use phases which we can enumerate with */ 64 - if (!IS_ERR(priv->sample_clk)) 64 + if (!IS_ERR(priv->sample_clk) && ios->timing <= MMC_TIMING_SD_HS) 65 65 clk_set_phase(priv->sample_clk, priv->default_sample_phase); 66 66 67 67 /*