From patchwork Wed Apr 19 02:53:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bough Chen X-Patchwork-Id: 9686789 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 725D96037E for ; Wed, 19 Apr 2017 02:47:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 627D6283F1 for ; Wed, 19 Apr 2017 02:47:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 52D85283F4; Wed, 19 Apr 2017 02:47:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 83449283F1 for ; Wed, 19 Apr 2017 02:47:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759281AbdDSCr4 (ORCPT ); Tue, 18 Apr 2017 22:47:56 -0400 Received: from mail-eopbgr00082.outbound.protection.outlook.com ([40.107.0.82]:35953 "EHLO EUR02-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1759226AbdDSCry (ORCPT ); Tue, 18 Apr 2017 22:47:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=TpTHnTLBQMIJNfzKJCd8sY6s1R7omNGuhEkaXDMcj/0=; b=BgKd5FOOPjYafR3CQzqa8PXxGQ8+ykyfoIo/IjLDDc+TI2dxiwBPjBhjMIngYpSnhUGotkR63o+njJnmTmau7Uc+YK/OE+NElVwkNZE/O3IdrKi40d1hAVlUtTMctnbD3rBFcIi37L36SAuF4cSDa/XOKwEupaXT85RAA8+EvaU= Authentication-Results: intel.com; dkim=none (message not signed) header.d=none; intel.com; dmarc=none action=none header.from=nxp.com; Received: from b51421-server.ap.freescale.net (199.59.225.131) by AM4PR0401MB2324.eurprd04.prod.outlook.com (2603:10a6:200:50::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1034.10; Wed, 19 Apr 2017 02:47:46 +0000 From: Haibo Chen To: , , , CC: , Subject: [PATCH v2] mmc: sdhci-esdhc-imx: increase the pad I/O drive strength for DDR50 card Date: Wed, 19 Apr 2017 10:53:51 +0800 Message-ID: <1492570431-5532-1-git-send-email-haibo.chen@nxp.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-Originating-IP: [199.59.225.131] X-ClientProxiedBy: KL1PR06CA0001.apcprd06.prod.outlook.com (2a01:111:e400:5be0::11) To AM4PR0401MB2324.eurprd04.prod.outlook.com (2603:10a6:200:50::23) X-MS-Office365-Filtering-Correlation-Id: 08c2a702-5c95-4713-1a1a-08d486ce7966 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081)(201703131423075)(201703031133081); SRVR:AM4PR0401MB2324; X-Microsoft-Exchange-Diagnostics: 1; AM4PR0401MB2324; 3:jEsdqwesnDOUjL56ruulsf8cLECkuYqe9IiyfQt7spBfoJvjeDUf6MuyeKUNAlgNymT1ZpKJoixi9QaqCirstkyb3wvKS5vZcsBhfLi7jyXuvvHBqOZ/8bmm6SI4DefHxaKlHVHRTejz+gElqRa1K4y63mhy3+uQc+uV5NvCflC+EZtzWIHs8iVWok+ZTxn/AkT2PDOc0w7Wm9FTML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a0IrbYgRDQbLqdrJvRAt07p1nvf+R59QcA6uIpNOmk9k0n6jMs4T6XIxs5VxQFoqOhDUXwoAaS/XFiNta3fo+vkr5ZwZqJGsuJ3DkRA520oiuwsXEZz6aqfNqjJLN0LHWB+Ql9LJeCOWT+++AAuLv+Jmg8On6R9rr9kF3W15UT+wPnY0ZT5WWV/4E385JNoqLez4KuyptRo8yWoR+uS6kReZO/4VpMFdjJzBeNEvPbM3MqN3kmFEU5Gd7FrLYSTVh2bzzHjHcfgvTJ1w4N7/8vpJYY1QUcLxgvnL1mLCpv0INxOwgqmmEzK/KRS76yeBp4F3jS+x8jINq8BNB04UZvUh X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(9452136761055)(185117386973197)(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(93006095)(93001095)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(20161123560025)(20161123564025)(20161123562025)(20161123555025)(6072148); SRVR:AM4PR0401MB2324; BCL:0; PCL:0; RULEID:; SRVR:AM4PR0401MB2324; X-Microsoft-Exchange-Diagnostics: 1; AM4PR0401MB2324; 4:XEXogzQivKmdrj0sExJ/yPyC1ydmSM/CgMj6LvdE3DbomW3WvGEJAXr0EteyY5r5zm/b1twngXtwzAxPFxUoRiK/89YIYSGcnOBEMy4W1Djh4fomnbeMlm1AyRhNOkcUxA5ntHMo3wkhBkfYRBRvG4ICw5xKZ4N15gkCXUo4SXAHKXuwaiX0YRkfU1gmtAuFnpFziB26Ibf3z/51bgUT8qnuo3HLzfIpoTZ8jFu3Ei4AptpAe3Zud64mjLBmDrYxmmD5+I95hRyWYF/e6ZP3iCfgPKF3tdF0Qvq76kQ901i0l8gIAkieDX03ZBtpkYTE2xLn83koIdiygYpVxnPVYWLuOC3Uiw2YDIY5feqcA5V41GrRGUFj1LnMDRNOYOnIcMkAcMtZHfmyG/wMvvw2y2/XXD9ga00W1HuwM9BaFzT6M360uQWg3bC2X0GNgtPYeVE+29nNIqkr47Q+VuBGmh9jsPjniMec16yPczbuSqiX3v7ETN8jaEq2FcuxxAZXqoUcQP1F2d7cMMl3j6bqDRiJvmUg8TrdMnvlniFiuIy5+YdFOwxP1Pc1FiLYlYHYw4OglCplHzF6IAf7NmbjFIfK5vGFlvXxjXM9ambPikuZmvc4X4Mizp+EK4SEas9+5XstEP3Qkl5RRiwZmwhUYJ/Ymmr+h/7XUq8SCYI3FE/QO10R+yfINrMvf+AnwjqYzjzowDnFljHYaAJ3UDc1EbkSLWkNR3iQuYzKwFFARor4VOShAwXnWY9JO8GCARmIx1jIcud9cVT0u+9B093gh9PPdtOVdveSYZU0QZKM8VK3sSrraHg7g2kQfmVxa328wGkFLYPACSBgI/VT0iFy5kf4C2sFO8z6ZOw1PK67EYw= X-Forefront-PRVS: 028256169F X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39410400002)(39860400002)(39450400003)(39840400002)(39850400002)(39400400002)(5660300001)(50986999)(36756003)(42186005)(53936002)(54906002)(6666003)(6512007)(50226002)(66066001)(189998001)(86362001)(33646002)(81166006)(4326008)(25786009)(48376002)(6506006)(5003940100001)(50466002)(6486002)(47776003)(230783001)(8676002)(6116002)(38730400002)(2201001)(3846002)(2906002)(7736002)(305945005); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR0401MB2324; H:b51421-server.ap.freescale.net; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM4PR0401MB2324; 23:4XhnzgwGW00QeGQkltsr84OGjR8opwoL7W5gjme?= =?us-ascii?Q?5sFtBzpaT/60K+AN9ZB4KTq37eFv3meHFdWP2UCzmU60QuAtwKXEgKn11UA5?= =?us-ascii?Q?3yytTxdIhzmvlffJmAZJ5B0S6F84NiewNlaS9P8VyXf69+TgohXEKjXW2DB7?= =?us-ascii?Q?mGnoLPbA8KUq3Z40U77M0CKDOEx+DdRZ8xVxewJroSOzb36NEogdu/L+WdtC?= =?us-ascii?Q?MBzUcRpcIj5Img+LTDtEVkg6UDjFWZBhV0yDSMshHL8gVSvhnBeNIJA4Dayt?= =?us-ascii?Q?2OD5u0YfsRUYPm60c3FimISyGzSwC/Fvm7i3ZjaWUL27uqFOPLiAoLVCKerm?= =?us-ascii?Q?+h+2MVPa2IybS0YUbUWRZWxlAFRY54F/QL6AVUuv35aOum0Jhk8QRqmcDs/L?= =?us-ascii?Q?wTooA7cLqzskLvLYTvr/51G43317IVx5DWxbhyBl1hvKALewQgdGcGlQ5RVz?= =?us-ascii?Q?AwA1d1zQji3KhruXanUCZ/VA7L5ffnZee55cp0Y744s10GCa7qilEvX1vPoJ?= =?us-ascii?Q?2s9NyoXeE5+fhLuJut57+Jm+6SffFOLt9Yy6BkeR1/4uJXo5wvzat7UFqnV9?= =?us-ascii?Q?7Z+LmW+w5gbSDaPdK7/0RJNXgLQ504Xem6loXYZfvdepNaOBMP/BVD26urJL?= =?us-ascii?Q?h+sk+6CXM7AZocgSecjgHsF3J7wM3y7HD2/Njbzjy6idIBzWBadITifgeGF1?= =?us-ascii?Q?Uf6x4qrGi0tUV452h2eXNRlsRYXANyONamJtHGv8S4eXWOS13ROb/j9aMMRz?= =?us-ascii?Q?HKvNtPmtKAqVCiMy0X52wiDhugQrmEqOEiYc2ZM8/n2miiaSkbenM4n9gy2k?= =?us-ascii?Q?9KgYSXMIvl8ru3SJBGXI8hYfuHQk5Q96xgKmy4mKQC8LsQhSj1uGXVkafHJy?= =?us-ascii?Q?P+k7z93A0ng4VNSwW3UvLj1jd1xvZqDUmqAcdRWNmK+v1qddE6a5aukdKjfU?= =?us-ascii?Q?il7gBO5DMIdrk00ox/HqiejV3JSZxaSB0+Q3SjPSzXGEm7IQVCehoxhTjGr6?= =?us-ascii?Q?muDm1pDebuLYs85N+DcAT+7lI?= X-Microsoft-Exchange-Diagnostics: 1; AM4PR0401MB2324; 6:tisj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oYyr1dAEH3gAwonk1kQsQwl8cbwTpMMWHpL66pmGCube8oD8vH8G6J7rM+9FsezWlGgnxEdNcr4rJ82EohbJJQ7Hg== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Apr 2017 02:47:46.0297 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR0401MB2324 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- 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 cf666a0..abad67a 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: