From patchwork Mon Apr 17 11:10:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bough Chen X-Patchwork-Id: 9683723 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 8F123600F6 for ; Mon, 17 Apr 2017 11:03:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7836922638 for ; Mon, 17 Apr 2017 11:03:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6AAA026E4C; Mon, 17 Apr 2017 11:03:49 +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 98E3F22638 for ; Mon, 17 Apr 2017 11:03:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751921AbdDQLDq (ORCPT ); Mon, 17 Apr 2017 07:03:46 -0400 Received: from mail-eopbgr40051.outbound.protection.outlook.com ([40.107.4.51]:28320 "EHLO EUR03-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751894AbdDQLDp (ORCPT ); Mon, 17 Apr 2017 07:03:45 -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=2NRvToMv7SXEmfTAc40DFFbv4bjNN7aTTfRN1LJ2xnk=; b=vX1tCYu+r4bT0Z7WR4yio92kRv5gPE/iwfslt8O49xXbT/fIFnOh5lCeqA52Y2zlqgaJnV+bonKiBmNtLuG4cZbXpuH2cXXOswcgCTZTN3AcSUPZf93kR0HDx1QXFrpbMn8PsU/D3uoiB0nM31NM+AKA6eQDzRuCGyrnv3oIxzM= 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 (192.158.241.86) by HE1PR0401MB2331.eurprd04.prod.outlook.com (10.168.32.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1034.10; Mon, 17 Apr 2017 11:03:37 +0000 From: Haibo Chen To: , , CC: , , Subject: [PATCH] mmc: sdhci-esdhc-imx: increase the pad I/O drive strength for DDR50 card Date: Mon, 17 Apr 2017 19:10:02 +0800 Message-ID: <1492427402-5506-1-git-send-email-haibo.chen@nxp.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-Originating-IP: [192.158.241.86] X-ClientProxiedBy: KL1PR06CA0054.apcprd06.prod.outlook.com (10.170.170.22) To HE1PR0401MB2331.eurprd04.prod.outlook.com (10.168.32.150) X-MS-Office365-Filtering-Correlation-Id: 8debb236-8bd7-41db-25d4-08d485816773 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081)(201703131423075)(201703031133081); SRVR:HE1PR0401MB2331; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0401MB2331; 3:uRjhTsIm4zb8xRnAmc2vx884htijgtKPUUzbYtA7KVhIvwbAa8SMINNBnF94scr4rxhusLYHf+dgj6zW/fUx6U4OVR8j/6kHcd+vuiZ+6srrsW6PDgawZ6TZ9Q+P/iv8NOjbvvh6JSggQREBL63QKlG8b9orVKR8BKeyXCnUcwyJXSCL0G+xe1vN6R0LantQ6gxvIBkNKzJShjEDX0p3YrLJLRs9UQETTtg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BzqVvCvywQWhvt09QXTzZr+UA2seZksvNG8fseyv/4vZ+mUf3NRjwx7LRamNF28+r/B+GxbAwlavRibSzOXIhCyA1c7Yf2qZTzo3VaO8Vggc79eM2spK1KBd0CtN+Dh4QI0vZw8YCexrgUKF8LShdIYo9JSbrO1o57JShgf1w00aFMqLAZ3ZKJq0Dg6NzTU+4SjgjPtcROT/dTlUUaulgTUkA8LwabCYTH9MEbuWa93eFAkZa1/MrHmhF+tMXi09GXFC2sO6yapcqoiuDNeGK4zRWJ3NQsfl79tKa9E5Y5ZmeqtC9ms1d52PeR1p0eac8ZI8fLqD6kVIeYS8iuHz0UMzFoKAty X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(9452136761055)(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3002001)(6055026)(6041248)(20161123560025)(20161123562025)(20161123564025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(6072148); SRVR:HE1PR0401MB2331; BCL:0; PCL:0; RULEID:; SRVR:HE1PR0401MB2331; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0401MB2331; 4:r8trzTy5/RUbSasT0ujyoCDfwUoPdIBidgAuzPNmLe0d4LUzQa/x56NgaG2t+L12lsyqB/FjoeYAijtpri2t/0v7quvRjQyeVNfu6vN2xlHnknJ3e+J/AdCHdrYc+iF/UdIxB+yPa9NmRb8IqCAfK9B+G1AX6dMApRyLAdqDHAiwe4WcTvU9enm6HKVFSsPZs5F/u4daaPAGV3jddqLDbgA1KO6TiFPpN7tIt9UdZppM9154MJQ9VpOIT5gg8wnzF2qtiskytVULYelRE9qpPOEcMY4IqpTB1MIRD0vla9aPCS81jWeUDQdkvBWE8GGTbfDmUx4tPWpORBWMBGSagDbSUGtjH9nIYwWiY6Ibxn9KxsTq/cCS5nA0dI73AzICa1a/KKl67mdHnHAOvLghnWancWM4isAYw0GwL+9XrzuEPNjgYAejWl1Vufhc2i4G2FXybHtENRlOyxcaKBz6iMrNbkfVCwkHCboVFaB8NlSjTkrInfaqNyUyNuXQ5DLP5hGAtu43JKx5Gpq9WteLzYvsJCRKc6oCVFKFT39Du9y+Bo9+fOae7qSPzBjXOh5+ohNJQ4jKNkh7S+1aPqMF0Xgm8F5zs0JDXhvDm7rdhj13lvtYv5lDFRVomCrGGk2M3rvDVUplWcIra/cGa+ZYCs8JrIOYRAKsI55PzTve92UdMngHCRJ+QuiSFIItBJkAwkQ6ISN3NxE9WJYugYQ2RZejqF/feYU99A6wiVVmYG/6vGFazF+l++5/1176SBx78SU0bgrZvjytSTc64zUM7+O2Mhybw14oXuFkIXp7yZmSjmjT9j69YtK/tZDMfW0H X-Forefront-PRVS: 02801ACE41 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39410400002)(39450400003)(39400400002)(39860400002)(39850400002)(39840400002)(6116002)(36756003)(5660300001)(50986999)(38730400002)(47776003)(5003940100001)(66066001)(6666003)(42186005)(3846002)(53936002)(7736002)(305945005)(6486002)(6512007)(54906002)(6506006)(6636002)(2906002)(230783001)(25786009)(8676002)(86362001)(2201001)(81166006)(33646002)(189998001)(4326008)(50226002); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR0401MB2331; H:b51421-server.ap.freescale.net; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR0401MB2331; 23:tCkFU477GI6Ate2+Xk43VmPt1yBx0ju6SHTVwb+?= =?us-ascii?Q?mpZgVRBNkei1k5x9WVTVbM6qPzLLrSGu+NhMJbFd+CXltSxx6TF7yA8LIQJy?= =?us-ascii?Q?KbHB4KjD82qCFjP46HxdWalGK2/gJA6274MjAfwft1vpj6ZGijTssIDE1c2s?= =?us-ascii?Q?whgvuEA1Rk1Xp8qGm2bwC9QPmtRnoLdVf1N0dEDmb/CreCFYvJdtHxzRR9uQ?= =?us-asc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maF05fLwDhyY36l3bdK0Obqnq+WSYEdg7UEL55A== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Apr 2017 11:03:37.2064 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0401MB2331 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. Tested-and-reported-by: Tim Harvey Signed-off-by: Haibo Chen Cc: stable@vger.kernel.org # v4.4+ Acked-by: Adrian Hunter Acked-by: Dong Aisheng --- 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: