[source] imx6: apply upstream mmc fix for DDR50 cards on UHS-I capable boards

LEDE Commits lede-commits at lists.infradead.org
Wed Apr 26 02:53:04 PDT 2017


nbd pushed a commit to source.git, branch master:
https://git.lede-project.org/bc1e7469aac44ce1e9a21be4cea1e6e7672f3cdb

commit bc1e7469aac44ce1e9a21be4cea1e6e7672f3cdb
Author: Tim Harvey <tharvey at gateworks.com>
AuthorDate: Thu Apr 20 11:46:01 2017 -0700

    imx6: apply upstream mmc fix for DDR50 cards on UHS-I capable boards
    
    https://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc.git/commit/?h=fixes&id=9f327845358d3dd0d8a5a7a5436b0aa5c432e757
    
    Signed-off-by: Tim Harvey <tharvey at gateworks.com>
---
 ...sdhc-imx-increase-the-pad-I-O-drive-stren.patch | 42 ++++++++++++++++++++++
 1 file changed, 42 insertions(+)

diff --git a/target/linux/imx6/patches-4.9/0003-mmc-sdhci-esdhc-imx-increase-the-pad-I-O-drive-stren.patch b/target/linux/imx6/patches-4.9/0003-mmc-sdhci-esdhc-imx-increase-the-pad-I-O-drive-stren.patch
new file mode 100644
index 0000000..f97e829
--- /dev/null
+++ b/target/linux/imx6/patches-4.9/0003-mmc-sdhci-esdhc-imx-increase-the-pad-I-O-drive-stren.patch
@@ -0,0 +1,42 @@
+From 9f327845358d3dd0d8a5a7a5436b0aa5c432e757 Mon Sep 17 00:00:00 2001
+From: Haibo Chen <haibo.chen at nxp.com>
+Date: Wed, 19 Apr 2017 10:53:51 +0800
+Subject: [PATCH] mmc: sdhci-esdhc-imx: increase the pad I/O drive strength for
+ DDR50 card
+
+Currently for DDR50 card, it need tuning in default. We meet tuning fail
+issue for DDR50 card and some data CRC error when DDR50 sd card works.
+
+This is because the default pad I/O drive strength can't make sure DDR50
+card work stable. So increase the pad I/O drive strength for DDR50 card,
+and use pins_100mhz.
+
+This fixes DDR50 card support for IMX since DDR50 tuning was enabled from
+commit 9faac7b95ea4 ("mmc: sdhci: enable tuning for DDR50")
+
+Tested-and-reported-by: Tim Harvey <tharvey at gateworks.com>
+Signed-off-by: Haibo Chen <haibo.chen at nxp.com>
+Cc: stable at vger.kernel.org # v4.4+
+Acked-by: Dong Aisheng <aisheng.dong at nxp.com>
+Acked-by: Adrian Hunter <adrian.hunter at intel.com>
+Signed-off-by: Ulf Hansson <ulf.hansson at linaro.org>
+Signed-off-by: Tim Harvey <tharvey at gateworks.com>
+---
+ drivers/mmc/host/sdhci-esdhc-imx.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c
+index 7123ef9..445fc47 100644
+--- a/drivers/mmc/host/sdhci-esdhc-imx.c
++++ b/drivers/mmc/host/sdhci-esdhc-imx.c
+@@ -830,6 +830,7 @@ static int esdhc_change_pinstate(struct sdhci_host *host,
+ 
+ 	switch (uhs) {
+ 	case MMC_TIMING_UHS_SDR50:
++	case MMC_TIMING_UHS_DDR50:
+ 		pinctrl = imx_data->pins_100mhz;
+ 		break;
+ 	case MMC_TIMING_UHS_SDR104:
+-- 
+2.7.4
+



More information about the lede-commits mailing list