summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/mtk-sd.c
diff options
context:
space:
mode:
authorChaotian Jing <chaotian.jing@mediatek.com>2019-01-23 20:05:25 +0800
committerUlf Hansson <ulf.hansson@linaro.org>2019-01-28 12:49:28 +0100
commit3751e008da0df4384031bd66a516c0292f915605 (patch)
tree70f6df41433b9f9f045ccb7396e9793ce1def4a2 /drivers/mmc/host/mtk-sd.c
parent8c9620b1cc9b69e82fa8d4081d646d0016b602e7 (diff)
downloadlinux-stable-3751e008da0df4384031bd66a516c0292f915605.tar.gz
linux-stable-3751e008da0df4384031bd66a516c0292f915605.tar.bz2
linux-stable-3751e008da0df4384031bd66a516c0292f915605.zip
mmc: mediatek: fix incorrect register setting of hs400_cmd_int_delay
to set cmd internal delay, need set PAD_TUNE register but not PAD_CMD_TUNE register. Signed-off-by: Chaotian Jing <chaotian.jing@mediatek.com> Fixes: 1ede5cb88a29 ("mmc: mediatek: Use data tune for CMD line tune") Cc: stable@vger.kernel.org # v4.12+ Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/host/mtk-sd.c')
-rw-r--r--drivers/mmc/host/mtk-sd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/mtk-sd.c b/drivers/mmc/host/mtk-sd.c
index 8afeaf81ae66..833ef0590af8 100644
--- a/drivers/mmc/host/mtk-sd.c
+++ b/drivers/mmc/host/mtk-sd.c
@@ -846,7 +846,7 @@ static void msdc_set_mclk(struct msdc_host *host, unsigned char timing, u32 hz)
if (timing == MMC_TIMING_MMC_HS400 &&
host->dev_comp->hs400_tune)
- sdr_set_field(host->base + PAD_CMD_TUNE,
+ sdr_set_field(host->base + tune_reg,
MSDC_PAD_TUNE_CMDRRDLY,
host->hs400_cmd_int_delay);
dev_dbg(host->dev, "sclk: %d, timing: %d\n", host->mmc->actual_clock,