From patchwork Tue Apr 11 05:10:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangbo Lu X-Patchwork-Id: 9674573 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 559B660381 for ; Tue, 11 Apr 2017 05:25:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 47F5C28450 for ; Tue, 11 Apr 2017 05:25:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3CCD9284D9; Tue, 11 Apr 2017 05:25:27 +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 CA4E428450 for ; Tue, 11 Apr 2017 05:25:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753460AbdDKFZ0 (ORCPT ); Tue, 11 Apr 2017 01:25:26 -0400 Received: from mail-by2nam03on0069.outbound.protection.outlook.com ([104.47.42.69]:65184 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753459AbdDKFZZ (ORCPT ); Tue, 11 Apr 2017 01:25:25 -0400 Received: from BN3PR0301CA0054.namprd03.prod.outlook.com (10.160.152.150) by CY1PR0301MB1289.namprd03.prod.outlook.com (10.161.213.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1019.17; Tue, 11 Apr 2017 05:25:23 +0000 Received: from BY2FFO11FD040.protection.gbl (2a01:111:f400:7c0c::163) by BN3PR0301CA0054.outlook.office365.com (2a01:111:e400:401e::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1019.17 via Frontend Transport; Tue, 11 Apr 2017 05:25:23 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BY2FFO11FD040.mail.protection.outlook.com (10.1.14.225) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1019.14 via Frontend Transport; Tue, 11 Apr 2017 05:25:21 +0000 Received: from titan.ap.freescale.net ([10.192.208.233]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v3B5P7pC017167; Mon, 10 Apr 2017 22:25:19 -0700 From: Yangbo Lu To: , , Adrian Hunter CC: Xiaobo Xie , Yangbo Lu Subject: [v4, 5/5] mmc: sdhci-of-esdhc: add delay between tuning cycles Date: Tue, 11 Apr 2017 13:10:31 +0800 Message-ID: <1491887431-31894-6-git-send-email-yangbo.lu@nxp.com> X-Mailer: git-send-email 2.1.0.27.g96db324 In-Reply-To: <1491887431-31894-1-git-send-email-yangbo.lu@nxp.com> References: <1491887431-31894-1-git-send-email-yangbo.lu@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131363619221465142; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(979002)(6009001)(336005)(39410400002)(39840400002)(39380400002)(39850400002)(39860400002)(39400400002)(39450400003)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(9170700003)(48376002)(77096006)(76176999)(50986999)(230783001)(53936002)(50226002)(4326008)(33646002)(86362001)(54906002)(38730400002)(2906002)(81166006)(8676002)(8936002)(8656002)(5003940100001)(356003)(36756003)(5660300001)(47776003)(305945005)(50466002)(189998001)(104016004)(105606002)(2950100002)(6666003)(106466001)(85426001)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0301MB1289; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; MX:1; A:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD040; 1:ucqO0De6W+eb6mvTKuWpqX2JqhQWo7mVg4Enyz5ROYSOGiVBvWdbL+wgPIGrZx4qeN+cDvzMIu6sgB5YjeWJWLFTZDyp15QZcNYYK79jp7BVzvfgjfT59km76vd2CL5ruBn5chGg0ZcI7LApXIMkedfcw/j8qztHG63cdq8pqRvMKsyKeGdaZnfWHyhTS1sP+HeCL4tHEm/l6wANiYPni/jI193UgeJfBLoW/zkC6x0x/tLJ0ap9iD3alwRznF+yl5xVLnoJv+czGvqHaasBlDxJuqY/goZC86NjJfKLdLQBaVjaDr7pWIR3iesycvro1Zai/PgUXy5Z4RkRbJMFSxxs42+8Is+hqRU61Nn85jvgNjzTvbsYv+EyZ9Fv1qCXYezUUH2HQqsUrG6+MHajx+q9Iubj6rzo+7rA6tLrbumez1kFqrpvY0uCpwoYxikdh38xLn/Y1+5+Xt8LrO7Uw+VhJ5NE7Vwq+6YOZ2COKRNWPs71vkATgsiLs3tWt5RdETQ+eQWnhJyId3L781A9F4sV2nRM7J+zwkoLA1FUGAMT/A56iboDdEejcbnHTbGwg0a/rSzSu5zV7BNKBsh0hIZiF3hyjGLnyAzHseNaSFlCRi2f5MWKfZjasRF/lTgF6GDUMF9oHMIvP3ZFz1UCQSXST38fBnhecesLJgdxpL8UWzaCphhBakCSct0DYTbaNxDnYXQUg7G1Vu1PDB867I3w/fZR8YN1jteQMOiUQcW/GtwBJdgPIL3wLOaNyZ5X/98koFrx4I/TZEp/tiFEyg== MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 7d04bacd-39cd-448d-86d5-08d4809b268f X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131430075)(201703131517081); SRVR:CY1PR0301MB1289; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB1289; 3:Hu9DY9GM+45lTJ0WVihwHGFnYLqtq3b0tvPuRVVQj8dG8UTM0vZ3klwHUygRl/PqU/BxbV2kqLxtir6YFj8iV2zXgr+7qGWMMciEfsbg1n5YZ0oiP0tBuVJyt4Kqu6BGXYevS8qGDOmXnvV1hpdNqFyTJ+AKg9kpElS1b8A6lABYYztScYKNUzauXrh41Rv0a+hU3XwD1sFzrTf3pWm7QElQVHgiuIejptcb90eNZLjFTDcQk/eorC1DlDwduaIul5C1BBTTUMWUUuolbWmIkc9/t3v+wh/mZKkd6zcdHiNmWT7mXNz7T0bdKQL5A/lgURkZ2PSQXVfy7Pf1rNzpRNlCvTv11IQuSDvxDW6DMvVvT2aR7BBB3NmQK9Xws3rDoh5cRURIJHYAy6NnX7B2b8ekzg9by57UaasxRoU2YGpRM6a523ftJgEQ7cUZrJVj; 25:SbE2QqfF3UuAUOO1ZJPbosBqTUG9PcER5Z/VQYt/Q/sbl8Xlgve70C6j+bIb7czWA46AsX2/FiXUDN+TYjpPzjW1b3fgOLxSjateTZLWzBngs486ZNc0gm99C7WmlJLHHUIiy4LAX2JzX4JWbMnvR20nNMRh8uYRnhKYSCQnhlXGIIlB4L8C8kyj3xna3un8oMZAuJsgHpFV+HTdBKpcb9ZHLBHDyHvQuOSO4D3gMtXZ/psnNloRJfQvfdaLSFccYMY59rdMPMDod7AI1+fkkr3otor3lykeKd2UgvPoqfqx7lklYlf+Weo14WpaIv2GeKC4WiCOns+Z93/LI7JIY/Cf6umnNXx6abG3Nu5B8qKmPWOoVNG8oX7ch3Q/+d2ZPu0SEVlNQvqEsWpnqvMamVkk6ICLyL6hUSQnqDjGxv+vRHpsMoKreNXa/uASi657H2lXZ2DnP4SbZLb4NpITRg== X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB1289; 31:m2tpQwIuT1PJ/XU8ypSdJR2kxes3yj5b8wwhoX9mGF0Xf5XnlNra6Bzbh736SyCIoQ8r9uzxC0cA5meVGrPVTgjlPBzSjGnLgSMT4wqdyEqKzYN105u9zOjuJM1XWdHCm/rf+emaE/ANfHZMc21AzSv6uMm3PG+a0QExaaRdkqAvQiG09UrFT/p8r3Ddy6Cykjh5spzZBAK75XckPonJCyhz3OkDY+h2uNrc8Z26SsKqTUAb4mhV0mad1HDthWth1kto2MuJFHC7FWtri9aLpQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(601004)(2401047)(13017025)(13024025)(13023025)(13018025)(13015025)(8121501046)(5005006)(10201501046)(93006095)(93001095)(3002001)(6055026)(6096035)(20161123563025)(201703131430075)(201703131448075)(201703131433075)(201703161259075)(20161123556025)(20161123565025)(20161123561025); SRVR:CY1PR0301MB1289; BCL:0; PCL:0; RULEID:(400006); SRVR:CY1PR0301MB1289; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB1289; 4:c6VB2ubzn9j75c+DWdBEAvdqWxK7b0yPYByDiycS0mWGCWp2bp+fZ6zqSpzt+mno5CwYAfQiZiH0uQ2+1+gd7RT6VjYSfxN8Uw9Yrj0cVVbUKi8uK9B9bMoxxgkLrhbSQf06Ot2VpaVQxvSbvznkRKnw29fpfG2V0woc+qPkn5jgW9X0M1a+7qozGbOH5hPwfwYV8JQFaBSNwbw3RKGt5agIvCTHx3B4bJnCP9RbfQdEIJS3p4xWIKdibAvLDHc79oj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XSvCG7s8CbsH0zsVhssIxBVRaUbLc6nGMb+etSWRHV6cSvX/fEEfPjD0ysF70X8M/UIUcZNtYwKrmb2QCiD2FUYx0V/DyqyLgTaXGLoIPDq+1168xJf2B3Phxsh8+C0YwHo14cIX9qxnFEyQf51EWcwMmNpLwmZJ9lefGdfecZAP3PHKqTF4g7o6hhOv9zo+iYjFIAnUo0V3LCnAhpZ0elNmVik3l/hcEcSGOFYL5VpXGY17cZbViLSkBf9Gp6fMTU6JVEsEiChQph83k8GYw1JBvOX5hHVEQmcvsFSUX1cIF2lxpxWe2PIZ4HPA== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Apr 2017 05:25:21.9437 (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: CY1PR0301MB1289 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 It's observed that eSDHC needed delay between tuning cycles for HS200 successful tuning. This patch is to set 1ms delay for that. Signed-off-by: Yangbo Lu Acked-by: Adrian Hunter --- Changes for v2: - None Changes for v3: - Used a host member for tuning delay instead of a quirk. Changes for v4: - None --- drivers/mmc/host/sdhci-of-esdhc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mmc/host/sdhci-of-esdhc.c b/drivers/mmc/host/sdhci-of-esdhc.c index 80dc802..49ac197 100644 --- a/drivers/mmc/host/sdhci-of-esdhc.c +++ b/drivers/mmc/host/sdhci-of-esdhc.c @@ -809,6 +809,7 @@ static int sdhci_esdhc_probe(struct platform_device *pdev) host->mmc_host_ops.start_signal_voltage_switch = esdhc_signal_voltage_switch; host->mmc_host_ops.execute_tuning = esdhc_execute_tuning; + host->tuning_delay = 1; esdhc_init(pdev, host);