From patchwork Fri Mar 3 08:18:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangbo Lu X-Patchwork-Id: 9602185 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 6B70F60453 for ; Fri, 3 Mar 2017 08:34:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5EA4E2862C for ; Fri, 3 Mar 2017 08:34:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 535CE28631; Fri, 3 Mar 2017 08:34:18 +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 DF2EC2862C for ; Fri, 3 Mar 2017 08:34:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751531AbdCCIeP (ORCPT ); Fri, 3 Mar 2017 03:34:15 -0500 Received: from mail-sn1nam02on0052.outbound.protection.outlook.com ([104.47.36.52]:27063 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751512AbdCCIeL (ORCPT ); Fri, 3 Mar 2017 03:34:11 -0500 Received: from BN6PR03CA0051.namprd03.prod.outlook.com (10.173.137.13) by BN6PR03MB2945.namprd03.prod.outlook.com (10.175.126.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.947.12; Fri, 3 Mar 2017 08:33:08 +0000 Received: from BY2FFO11OLC008.protection.gbl (2a01:111:f400:7c0c::161) by BN6PR03CA0051.outlook.office365.com (2603:10b6:404:4c::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.947.12 via Frontend Transport; Fri, 3 Mar 2017 08:33:08 +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 BY2FFO11OLC008.mail.protection.outlook.com (10.1.14.255) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.933.11 via Frontend Transport; Fri, 3 Mar 2017 08:33:08 +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 v238WhMp019793; Fri, 3 Mar 2017 01:33:04 -0700 From: Yangbo Lu To: , , Adrian Hunter , Rob Herring , Mark Rutland , Catalin Marinas , "Will Deacon" CC: , , Xiaobo Xie , Yangbo Lu Subject: [v2, 5/7] mmc: sdhci-of-esdhc: add delay between tuning cycles Date: Fri, 3 Mar 2017 16:18:47 +0800 Message-ID: <1488529129-23560-6-git-send-email-yangbo.lu@nxp.com> X-Mailer: git-send-email 2.1.0.27.g96db324 In-Reply-To: <1488529129-23560-1-git-send-email-yangbo.lu@nxp.com> References: <1488529129-23560-1-git-send-email-yangbo.lu@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131330035885392965; (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)(336005)(7916002)(39380400002)(39410400002)(39400400002)(39850400002)(39860400002)(39450400003)(39840400002)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(9170700003)(5003940100001)(8936002)(47776003)(76176999)(81166006)(50226002)(8676002)(104016004)(77096006)(50986999)(86362001)(85426001)(230783001)(106466001)(105606002)(4326008)(8656002)(7416002)(36756003)(626004)(33646002)(38730400002)(356003)(2906002)(54906002)(189998001)(48376002)(50466002)(92566002)(53936002)(5660300001)(2950100002)(6666003)(305945005); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR03MB2945; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; MX:1; A:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11OLC008; 1:NBM40aPHd4duX2OGI/dNUGeGe+Khf4zOmMiBMUniMXNxYoEFgZzF+V3ko/iPABiCmGvnZH9ywokCnTgi3F/luncHl2NOd01kN4IBaRf/Du/DvlzWJp0S3ksMyePliVQcjTtlg7aWp7ftth4Z/ZDXIvOQ0/bZaA4aotrl7OShDwOHETFicwLJdNR4j9d2l9fIsijek4vHCE1WDeH5S8KYOpygB/s6vCiIM3MGw2EVCdkIFgQbOh93LviautR9wJLHSyGy6n97r+keTh898ARzmhIN4PscAOm6LM5FGI+Y8QYwydwKKI+t023HTyvlJ5X2cA0tgnecYiyZz8TqEaonX4d+XpVT/Jq1z0i+25kdpumOSks4XclUmBOlJRRiKWOsBuNQhJBBSrBzpHCTbhwgWuDzHA6sMBo2D9BCHB4hZpoUxVSnatAyEPmtQPQgWjeOPEgcbxa7AbpufO5ycjoOz2j1H5zK4BUIJoypefYwa/ejBlD02THyo5NhxFKB9QewYSBtkG4wmEWWGIQ1bpWkINXvmHh38C8Nx5TstLbubfAljQn2/HgquhVxs+t1IU1dKo4JvsmKKkQQjOY9IOuFQFgpkF1vhkOwaTA9+8l1hEaNIzZusa9m1YDhCfDAUY3Nh+DlhHgl44jX6XNqhza44iwdH2h8JGDzQrJqoTk4nNYCqwwEu+2lzNvKhyaPvW/72npmSGIURE39a9iPGBoyL/YlDVCOaOFGCEWeIfmkVy28pvwsc/wABGXVy8V71OEM MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: bbe6e37a-84f4-4823-b965-08d4620febad X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BN6PR03MB2945; X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2945; 3:xhH4cmS7krzN7PBtQLEM9cdRfOh5cBAWrKtBFWJ3TiQ8yfngMQiwsnCgfLLG/sDRMRkHqPujC3xzzQNF0t8+ahjhB0ot4CDPZctAXt2zr1BFa1uTViLYUJgKmG7VTTfjm+7SAkgNTGFvplntQoozRI/61TgU5uR9Cna+Kp36tKDHubkZyqR61yAa86StkYOEOUgDqn/1YMBw12VUC+Q2rKRnHMxz+XZsUMHUaJMxRugkLi2vLh1zCkWFjGhilp9+w/xsKYc/F60Ynj2Fv7GEuD3t/6DZTrIHpusHaz2YGk8Ff0OK98HgkegaoYnaY3fKZzYT2QnM/sxsayqcM1TLMJsrnFdJNW10Tu83gx2n13nsUEm4xbAKEfAYvP3ipX4W; 25:v30tAGDWcpv5GIx/9vxasikStopCaWHyasCYXDFCHKIl9b2POm5Wlc7rZKDsuHuJxTJrilZZ+RPxKD4IE9B/nq8WEHrKBjYgSN8IA9Jw+CHRB31AQA109K00iWSH4wbh8n3iaSzMy4P9kxrm7fMVJ3hp/rOmr+oVgRQmsKoa4RiEo0SGqivgRHzvzKVU5Fgonfc4JKw9Oi+9arQbXdMI3LNDpBVcDuknFyImxTDt5GC9qqO1JB4YzI9GlPNMrNlKvbEAQM4otVBczL/wZeXGpV/RI/Fbgga0BZHupNiKgh4wsRGSwSKsy/eZAv+AgJRC5JG27T+tQiyWUeIeA5U/zxxAlkdQU9G0NZebfDu4PQtp9ozLPacot0VQjUh9VVxrXXLbx/qsFeVC3JsDdbgcg6R/6yE43FhD1NOJDmM2swOYNBi4AK4/MoLqKD+hAe98s1xnbAp4gpnUnhirBwWLfA== X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2945; 31:MHT++2FhPwQjZhlKEpR65g1DYeFZH3sEvLtSRtuFxZHuewUlO2Farl8HWFq/TS8u5u0nHy2oQGqMk7m+HsuYMe0CP0Vr/cv4I1Wi+iD1LPh+5HGJknAteNAvFsgYbXqEKQ342jhGc510q0FrYADnv7Cej9xrPoevtVuRj8Wht0TDJqDByWK+ouydvWvWyRrmIXdO1zpGAEi50JMskuAjGEaw4nUQMrGseYCXha4XQQXd8FzfnWuyT+lVkju1j/2OI2CueGSDyDjLrvXrZ9OSnIh3CBWux7D9nIhg5J9C3yU= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095060)(601004)(2401047)(8121501046)(5005006)(13017025)(13015025)(13024025)(13018025)(13023025)(10201501046)(3002001)(6055026)(6096035)(20161123561025)(20161123559025)(20161123556025)(20161123565025)(20161123563025); SRVR:BN6PR03MB2945; BCL:0; PCL:0; RULEID:(400006); SRVR:BN6PR03MB2945; X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2945; 4:fxbGqG+OoGrcDvt7Gn4+Otlk/azXsbWtPFqjB+3Nw+JP6qnIrTpvYWgHVVksts7O8U66eYdnx5ZDe+EQQOk+lOjYj3LFwZ/qG8TxvAApgRMjeKI4trLYIXWrG8yx+jNIAqdkEyTdwGzUX3CLOibB4DlCOT16T+797Ge1T0SS0+28MwTVVjQZVXnKjKgtFwkMktFZyIUJ+qMZ8WlAflAXb7JKStBAnVQlGgCUeyBKvONrKo5ufvdSh95YWXzcPKB/IazBhjv5cv6Xhc0usQHMMVTb/osCB1eIpBJVAm3dGnzPCksBYUNq1jrQ7YYju1i9YC79136WdifEK7PK4WWchzX5oeJQawOI+a76+ggTL6nc2lxkB5T8ttBcxYgQZfNJVrjG2ZWgCUm+kVovBdt84DPQy/4OK4nR90YgMegwZibz5sCV0rBBcw7rsluxJI7Gip9YBF154MUXWP7N1PbHJDM8hIdriIxfLXWdsPsK9LmbVm0F+RiWUww7CcI6LV/6kBYc3/WlfYbZSH/IhhP/GF64vwgRAeiniH6VzrREif8PjQyZaVDma6lBKi16hqQGjFI3e5gWWy59wZSsIBQYnLW35Mz6SRjJbwh9D85C/qVvBVG74TZFbj/wFkLlFt3a3mciDYuSKx2gr56k2EYcDm+D00Nynlq1Grc6opzKunOZEIndOx51dnYB0CwLz6nPAZecAJxZ87sFJvvjyJ3qOHD7B4R4s1eeO+/okrxibOZavXw76SDJfodoPIf2IONc X-Forefront-PRVS: 0235CBE7D0 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR03MB2945; 23:sdRS6vsDeZwIzrObU6t9WqxQfwGWqlfPl1+Exfy8N?= =?us-ascii?Q?jB+MeHPp17tDWtAfuxTjTk9UMLvW/zSGpG+0ri3hiuqWNBU06CAuA2+OXf8D?= =?us-ascii?Q?9Ah47gXwjwZbP0BFHM5J/pW4lEaS9RdSP2fuxumI56jkBofM4TLrJZaOuhKY?= =?us-ascii?Q?8pWzHS8d8vKZ76uRf4cmq6MYC0Ians7Rmx3OWFjK3OCZuMrEeAcubbFCbx8D?= =?us-ascii?Q?Tx72BgF/DuaMW7qFI5xYc7InV/ZRO93Xdy22T7f13UQisGTRFKCSoHUQFk06?= =?us-ascii?Q?qDIerkw0Jdm6PxwaMWBDq0YXhcIEx9MNIvE8sMlFhbhRN13wTzwh20wGpsYe?= =?us-ascii?Q?GqyYQn7jXNre5HSBJ5MZIcbM4kqDffhunWaIQHwvS3pvji0glYzu1diE1W5F?= =?us-ascii?Q?HCWP2YPJ6SjUCxiyP63m3AIPNcSue/87KIvwFSEPpeWjHdxrLDBee2WvErPo?= =?us-ascii?Q?JsorjwtIyChwj0v23zLq0WEvNoxALmk8+COPf9EEilQQY/EbbNS4igaoXQC9?=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5hPGEi8CuyZWs5H+609rKmcsWbml9/U37dyeMRxHY7en9IS5i+rIbUoazbc0X0ZIdY0VVZdWviJI3uVxX03bDYF3jL5DSYex1pXuCRQ/pVc7paKSK59cD7o6F4fijORNQuyN0itNl0P5eRPd4QAVsFrqXWjtUUlWB0tqudr7cXBZ6q0HJaX3tcADpDDEwH6dFUTOXeNtETtrzjhAe0H7Pm99Ms8aX4LF3z6gJqOpWSWM3ymwau4bTSEG3jVZq9QHiQGeDdmAvNWejazipvOk7DlafObZNTAdNM6xCBTueXzI0ShEm3M=; 5:XvoEJKnEUng1t2c3xZzPouTzufNFfNUxdaKBHoIEiiC7ShkiZSIGGm+0VLZ8GzgVrkw47CoYg1X0D98OZTWG9fDtlQp4Q3rJ97oRIJRYohpQfjCJECnHLHQS3cUiXCz7/pzIr8h50fFEzuDhF1tnu/DOYpoxXWlaR5kXYtoj1J/33gf5CcuJ2r0Us3nbuQZ3; 24:i1bJcFjQZ9ejAG9zO/BA0YCcB3GrZT54EBhJcVx8jTGvfs6SPCPYel0KcmP9U2E0hrii7y3N362PF/Bxdx6t/p/R80T90RmIjN488YZ+6D8= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2945; 7:+1Qi7UkFRymiunpNxarneHS+a8g8FjRpeWkMBHiYHdvgF155W8fpJpjOCsTO7CIP1svnWOYyvc3/voli+hdmIOMsrhZrJ1mtccc32Rfv9j3qIZ5V8y1xcDgiPxglgsncRXQFSdYfoJAU5VRqZaHDqYiQz9kk7LM+2QVq7f6W/lrXIqCiaMRARGk+Y+22mTs11lhyw01EgC8q6d5CYcH0vu/+eStiYuSQ8YaP6ugcoZlbo9qQpA9MLt1FaLH+KnT/kPUyoxyeU5qFpj3ToIZnQhAhOWgYgPvqZcY2d3rFePPP1/jMSGUkliGmLW9y/OdS/JB1SKr/yf4Bn/6Q/U/rFw== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Mar 2017 08:33:08.2273 (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: BN6PR03MB2945 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 add the quirk SDHCI_QUIRK2_DELAY_BETWEEN_TUNING_CYCLES to fix it. Signed-off-by: Yangbo Lu --- Changes for v2: - None --- drivers/mmc/host/sdhci-of-esdhc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mmc/host/sdhci-of-esdhc.c b/drivers/mmc/host/sdhci-of-esdhc.c index 8007188..7c4d8e8 100644 --- a/drivers/mmc/host/sdhci-of-esdhc.c +++ b/drivers/mmc/host/sdhci-of-esdhc.c @@ -836,6 +836,8 @@ static int sdhci_esdhc_probe(struct platform_device *pdev) host->quirks2 |= SDHCI_QUIRK2_BROKEN_HOST_CONTROL; } + host->quirks2 |= SDHCI_QUIRK2_DELAY_BETWEEN_TUNING_CYCLES; + /* call to generic mmc_of_parse to support additional capabilities */ ret = mmc_of_parse(host->mmc); if (ret)