Skip to contentSkip to conversation

FAILED: patch "[PATCH] mmc: mediatek: fix incorrect register setting of" failed to apply to 4.14-stable tree

PATCH [email protected] 1 participant 1 message Feb 2, 2019

Subsystems (4)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

The patch below does not apply to the 4.14-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.

thanks,

greg k-h

------------------ original commit in Linus's tree ------------------

From 3751e008da0df4384031bd66a516c0292f915605 Mon Sep 17 00:00:00 2001
From: Chaotian Jing <[email protected]>
Date: Wed, 23 Jan 2019 20:05:25 +0800
Subject: [PATCH] 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.

Fixes 1ede5cb88a29 ("mmc: mediatek: Use data tune for CMD line tune")
Cc [email protected] # v4.12+
drivers/mmc/host/mtk-sd.c +1 -1
index 8afeaf81ae66..833ef0590af8 100644
@@ -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,