From patchwork Tue Jul 12 07:46:14 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aisheng Dong X-Patchwork-Id: 9224755 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 396BE604DB for ; Tue, 12 Jul 2016 08:09:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 271882236A for ; Tue, 12 Jul 2016 08:09:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 15E5927CF9; Tue, 12 Jul 2016 08:09:30 +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.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI 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 A0E1F2236A for ; Tue, 12 Jul 2016 08:09:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750980AbcGLIJ2 (ORCPT ); Tue, 12 Jul 2016 04:09:28 -0400 Received: from mail-co1nam03on0057.outbound.protection.outlook.com ([104.47.40.57]:53440 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750874AbcGLIJZ (ORCPT ); Tue, 12 Jul 2016 04:09:25 -0400 X-Greylist: delayed 915 seconds by postgrey-1.27 at vger.kernel.org; Tue, 12 Jul 2016 04:09:25 EDT Received: from BLUPR0301CA0028.namprd03.prod.outlook.com (10.162.113.166) by BN1PR0301MB0769.namprd03.prod.outlook.com (10.160.78.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.534.8; Tue, 12 Jul 2016 07:54:22 +0000 Received: from BY2FFO11FD052.protection.gbl (2a01:111:f400:7c0c::172) by BLUPR0301CA0028.outlook.office365.com (2a01:111:e400:5259::38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.528.16 via Frontend Transport; Tue, 12 Jul 2016 07:54:21 +0000 Authentication-Results: spf=temperror (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; gmail.com; dkim=none (message not signed) header.d=none; gmail.com; dmarc=temperror action=none header.from=nxp.com; Received-SPF: TempError (protection.outlook.com: error in processing during lookup of nxp.com: DNS Timeout) Received: from tx30smr01.am.freescale.net (192.88.168.50) by BY2FFO11FD052.mail.protection.outlook.com (10.1.15.189) with Microsoft SMTP Server (TLS) id 15.1.523.9 via Frontend Transport; Tue, 12 Jul 2016 07:54:19 +0000 Received: from shlinux2.ap.freescale.net (shlinux2.ap.freescale.net [10.192.224.44]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id u6C7rxtc002725; Tue, 12 Jul 2016 00:54:15 -0700 From: Dong Aisheng To: CC: , , , , , , , Subject: [PATCH V2 05/15] mmc: sdhci-esdhci-imx: disable DLL delay line settings explicitly Date: Tue, 12 Jul 2016 15:46:14 +0800 Message-ID: <1468309584-3591-6-git-send-email-aisheng.dong@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1468309584-3591-1-git-send-email-aisheng.dong@nxp.com> References: <1468309584-3591-1-git-send-email-aisheng.dong@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131127836596150195; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2970300002)(199003)(189002)(106466001)(189998001)(105606002)(8936002)(110136002)(97736004)(4326007)(76176999)(2950100001)(48376002)(50466002)(5003940100001)(19580395003)(50986999)(81166006)(2906002)(92566002)(19580405001)(77096005)(8676002)(87936001)(230783001)(50226002)(6806005)(68736007)(356003)(36756003)(305945005)(33646002)(86362001)(586003)(7846002)(8666005)(229853001)(2351001)(104016004)(47776003)(81156014)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:BN1PR0301MB0769; H:tx30smr01.am.freescale.net; FPR:; SPF:TempError; PTR:InfoDomainNonexistent; A:3; MX:3; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD052; 1:Qkxws2QVuzY6tjnMTjUlgs/wuhU3INdNQKwu58WqHnoYqEet4X82FooyBRxqPnKWeJ1+5UZolNQrdfAI7G3DMWncT6Cyw9HCC24UoDeoo7SiWeuP5iRN/DEyVEUL1u/clfBCDrpIy1AJSwz74TbADUserq6jiENNi7+VMYe9UFiNgVOC0TaTLUH6UVJEJzkKALVLij6c4pyjBaU7Ni5paaM/5sISSFE3uUnl56htDpx/GD7jR6UbwKGmxOPU+9TQ7BZGwjekYqxpQwFgeebxi54K1uE2Vfi+bZAa7Qiv/n4K8xUYhzT3lu9d89yYwoYmHoAK98XxHaUssJtLLFIs3qLBtKjdrsKSV82QSWTqv72/cDfg3XrpGP9lWcf40oMm5Gs9EISxVaZmhN02VmC9LlbvHuGo5Nu5N8i2jKZk4NPGaBhFMLaU/Oat+lLky7qq6BMW6lAHxlCxB2fULcvlPRXlD8l6lf8lpQHWZtSrNmnj1WWxsLUEkawTi6rCfFD2qUibVtMB6N8lbhw8r84R8fkCuvtNLC+8qNV6P1yr2Djxy/qjqqztiPxZ9KZ/wd4RJyaPJdmdIHrXEHZxrR8ZA+MxQrQlQRp1pJ5iSDdI08IYApsuV6OHbtOsY5d0im1lebfXb4l/pyLdSU5mV8zHLhAr45iNJZGSlRrRH8tEcyg= MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 29d7475e-20af-46aa-3e54-08d3aa29baef X-Microsoft-Exchange-Diagnostics: 1; BN1PR0301MB0769; 2:jzoK2Fw5ngoEv4zEVYG/T4A5+v8VGmZ0T6TFE058dZZ/ofrSE8acET2NbkS6nD+zp/1gfw2oZXXSo+Q1OYlGRwLMXTrYqzzn4diHDLAruu5jSa8cexTItosZ6xFT+Tr1m0h1QP98GRFTe+4IihxDolW/7DCXimfAfCSS8E6JDagdxP8EX7PnQQBnrsS3lga/; 3:C5Ew8Vk4wr+EiMXFOTdfptac0LiKHy0iZPYx7QBQH1dGzW5UDSlsY8LXfeaqC8ULVVl411mhgf0Pnc8jSUxdfuOr5KbWMPxgrM0UBBTFbPf4/QCsx0CPEVIcZgexJbJ6wdSemiyWWyuevXBYzAK7ShsPzKxPocfGOeihOz8HzRgMqP6dkUOeXa/GJEzkxsU/7ac06ad4+zs+0djUG8MhFjPapvxE5NhkDjy1OFQwJH8=; 25:oBC5vG1ww1O9zYGGVGqiRIgEtMbtFyDUZIPmwHzmU0pv0Bud7d8hEW+TKmF/f4k/V8wGVllnedudNURvl9rTnEgqibPaiSj7/lQTbcim4sYc7A2GH8PhbY58pnhhYr8DoVOQesRvRhl8f0RyLm0NkvpCxd4EQaExuiT2PFowB64RfendwJXycD/qyxcmWWYLn2MlsMSedeX1UK35T4Jir1NK8Y4REK7EvtD+lPBoSZfHM1u0a9tdZEiDCbl3myUbHcdvIeY4eYe85jOtWuhljXfSh4WUP+T0XwgRUQr/a7/Y+CHwcajx2uaH3nefLeNwFTmZdAXNRRkcqYg8Hahh3Jl2CuvQkSFuy+E7jyfCdFywl4arGFm/qlhh00BBaYt7wEVnJBgrbUgTypd10qZ6Vrbms1ZbQVn8jgLQO1gHfec= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN1PR0301MB0769; X-Microsoft-Exchange-Diagnostics: 1; BN1PR0301MB0769; 31:XxfwXgBDIy0G+51AFwqSwir9n/JuR45j69Ag9biUiccrjKMw2sUX3yaGLWoLmCzxYR66A7ucX+cmzgzX/AHbadG7Zk44tIZsDxpjdXcTMBRYXq/QOA/gQ5WI3GIdZTYjMvmRWITySehnKPqt8buiSudUuPEWuDFDNjnAdki0PdRlkAR2WB9t0c//kcptMBLxopzv+fxWrxEd0FU+r0D/eA==; 4:EDXC+YxIfRm9MuVWr4TwXVYSYLWMjr39KE9MXBPQwJt0wjRnUzEVSz92XuxUJAwBuzJ+XQrNID+vxBXzPvligyiUZ7OIdlDIYopBV38THORozDbCcJUwqWZwHeUWdnkRnieYVEjAX9qzWGQDS3dtILtb5BTbyBnfKamRjnToqFSZ+/vVwmvrPy7iXJy+s8EHi+C9fTcXel2Q4DxZY/1I5Q2juPXEpjYSllbc/l4Q/QeG5VB9c+TxEQNe163w17xGMoT+sceFtgB5i5lBD52yZP96YPtqjL6XRs5zjvJCzKApSmvcH43UrH3YpoBhX6m/nqj7Ef/9StO3WlpZOuPCmpgEgDvR71pA7ZPj/oNGZjEcFtxP+fUtRfB6bFZ9aK+8kMvKmVciv7x7o+09dHoF20gJ/nYiRbv5ygmJYiA1H1PG0bCeRV1D2HNIMvhUPYOaxmdI1u9HQT23O4qy/Pn7cgbGEz3Nt48jUhROsiCfpy7zCAFB2yU+iqkK45MsHfQwfeVMukOnSBH+pZe2z3B6Yiu+GNW9MsHB+/kJg7g9x/oFjY6ZWDcec7Bcp5c4+PRWa9xTcCSiMngvtz0Bk7zdnQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(101931422205132)(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13023025)(8121501046)(5005006)(13017025)(13015025)(13018025)(13024025)(10201501046)(3002001)(6055026); SRVR:BN1PR0301MB0769; BCL:0; PCL:0; RULEID:(400006); SRVR:BN1PR0301MB0769; X-Forefront-PRVS: 0001227049 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN1PR0301MB0769; 23:wOTk4dT7VtXZzq0m+sdRpVNo0Z+O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dJTaP01SHqfcrV5YuyTfFG3eT5vP+2PFCJN SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jul 2016 07:54:19.4122 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN1PR0301MB0769 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 From: Dong Aisheng Disable DLL delay line settings explicitly during driver initialization in case ROM/uBoot had set an invalid delay. e.g. MX6DL ROM has set the default delay line(DLLCTRL) to 0x1000021, the uSDHC clock timing will become marginal when works on DDR mode due to default delay and will possibly see CRC errors in case the board is not perfectly designed on the eMMC chip layout. Acked-by: Adrian Hunter Signed-off-by: Dong Aisheng --- drivers/mmc/host/sdhci-esdhc-imx.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c index 91c6a6864e15..874d5105f83c 100644 --- a/drivers/mmc/host/sdhci-esdhc-imx.c +++ b/drivers/mmc/host/sdhci-esdhc-imx.c @@ -1187,6 +1187,9 @@ static int sdhci_esdhc_imx_probe(struct platform_device *pdev) */ writel(readl(host->ioaddr + 0x6c) | BIT(7), host->ioaddr + 0x6c); + + /* disable DLL_CTRL delay line settings */ + writel(0x0, host->ioaddr + ESDHC_DLL_CTRL); } if (imx_data->socdata->flags & ESDHC_FLAG_MAN_TUNING)