From patchwork Thu Apr 20 18:46:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Harvey X-Patchwork-Id: 752944 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3w875G29jqz9s75 for ; Fri, 21 Apr 2017 04:42:10 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="hJQ4NFWq"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gateworks-com.20150623.gappssmtp.com header.i=@gateworks-com.20150623.gappssmtp.com header.b="JS19pGol"; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Subject:Message-Id: Date:To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=u19nF0m6APQwcp7VhU4s33CS1FZTf1nPwccMrKAvFkw=; b=hJQ4NFWq+NYwJ9 wvenzbQt7Wf8mPkRw0DCCqSOMiV9iXIiNYblieU3dJ+uTLhxC11NUUu9pm3vP0IygZG76BHuYNQKs Kcb68RtxK117eCawYEXiuCsYqH9yjyIdqdquPqp0CPxDeuBLNMveXqoJI7OTwHe9c3nT5Mjq8SbY1 QWKSSA/wqIvKh4iKgQJ6ecwgAF/32k8syxwNlB4nlpBpyVJQqS6lWBiCfK2Fb1eM2CRoxIUuRvI4Z o4mQ8wpMSKxsba5pfpMLZKAINotj5GcB+tF1gz/9kaKFKOlu2vrkzWBx974SmYObg6tpGJeZeHgnq 7pFRF/6JeBTpDLeSWhrA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1d1H1l-0000Wz-Ne; Thu, 20 Apr 2017 18:42:01 +0000 Received: from mail-yb0-x22d.google.com ([2607:f8b0:4002:c09::22d]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d1H1g-0000CS-HR for lede-dev@lists.infradead.org; Thu, 20 Apr 2017 18:41:59 +0000 Received: by mail-yb0-x22d.google.com with SMTP id 6so33552905ybq.2 for ; Thu, 20 Apr 2017 11:41:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gateworks-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=pMH4WonYzihCK+luqQN/IPKknM1iBLj9TorEFSPFN9Y=; b=JS19pGolU0Cz4srAL6v8Q6D6TTi1ipY54pbFabRHY1A0AIfoiJUWXe6nPzT6+L3Zrn fi68O/iAVp3jjF29kY2kVIGV74xQyW/vqakjRFvfKW4LAncWCSyHBL1EOz2TTjulMLlh 2S9+K8hFP31P8Qk62h6ZV6mUa+TVz+/dDB2vg15QFfQbuM89lZ8lACGQ4FJMS08Y9etV Iot7bWp7hUjXfkaT21ZCs/EoVXqX56Why+3FNBdHxuJW2EG20c7VisNxgT4VQNmcVWky YN2ooYuc0PCfIUWl74yL59EoieDuAQEfgb2zwKerDAqB33o8OahtArZ4Hn/9exNrBIqh 3o8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=pMH4WonYzihCK+luqQN/IPKknM1iBLj9TorEFSPFN9Y=; b=WHaNmVpA2PSzYFTAWJDfjUrsvR0A6hSCH8zSRQ8QUnK78QAY1o5+1/aNc5fveyzi5X xValvMptpqKyooFiJ9Q2lxNfBTrAXOdVQS65A5RHscS7unDZSPxa0hJr6npoiO84BxwA wI12Z+eWLrqyS1E6U9s0GYIysXSP2fPXdmHL8BadrpyKBSrgDpVUXivTlldwfrz17F00 vFVXj1teG7VDTuASE0YRreZkDIB3r8kGpxDto/rs2nnS2jrz7WL9uAEwYspFpEq4Ap6+ QoNh0sX1PvX+eH1h5WChmyyCVqhWUf7axCbBrexWK0URk9VIB2U3S2ExopNbneX3WIpJ IWnA== X-Gm-Message-State: AN3rC/6Eva1ZZn7lNF57KqcYVhnt2kT/PTF8U9udyA3QBwooins35116 8DnyA9ZdGKeC7A== X-Received: by 10.98.223.5 with SMTP id u5mr9046253pfg.147.1492713693887; Thu, 20 Apr 2017 11:41:33 -0700 (PDT) Received: from tharvey.pdc.gateworks.com (68-189-91-139.static.snlo.ca.charter.com. [68.189.91.139]) by smtp.gmail.com with ESMTPSA id m194sm11824929pga.62.2017.04.20.11.41.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 20 Apr 2017 11:41:32 -0700 (PDT) From: Tim Harvey To: lede-dev@lists.infradead.org Date: Thu, 20 Apr 2017 11:46:01 -0700 Message-Id: <1492713961-21850-1-git-send-email-tharvey@gateworks.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170420_114156_701940_F586D7C4 X-CRM114-Status: GOOD ( 11.20 ) X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [2607:f8b0:4002:c09:0:0:0:22d listed in] [list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Subject: [LEDE-DEV] [PATCH] imx6: apply upstream mmc fix for DDR50 cards on UHS-I capable boards X-BeenThere: lede-dev@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: nbd@nbd.name MIME-Version: 1.0 Sender: "Lede-dev" Errors-To: lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org https://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc.git/commit/?h=fixes&id=9f327845358d3dd0d8a5a7a5436b0aa5c432e757 Signed-off-by: Tim Harvey --- ...sdhc-imx-increase-the-pad-I-O-drive-stren.patch | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 target/linux/imx6/patches-4.9/0003-mmc-sdhci-esdhc-imx-increase-the-pad-I-O-drive-stren.patch 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 +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 +Signed-off-by: Haibo Chen +Cc: stable@vger.kernel.org # v4.4+ +Acked-by: Dong Aisheng +Acked-by: Adrian Hunter +Signed-off-by: Ulf Hansson +Signed-off-by: Tim Harvey +--- + 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 +