From patchwork Thu Mar 2 09:47:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangbo Lu X-Patchwork-Id: 9599839 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 A4163600CB for ; Thu, 2 Mar 2017 10:21:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8A1F627B2F for ; Thu, 2 Mar 2017 10:21:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7E7F228598; Thu, 2 Mar 2017 10:21:00 +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 EE08F28576 for ; Thu, 2 Mar 2017 10:20:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751122AbdCBKU7 (ORCPT ); Thu, 2 Mar 2017 05:20:59 -0500 Received: from mail-cys01nam02on0074.outbound.protection.outlook.com ([104.47.37.74]:25389 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751111AbdCBKU6 (ORCPT ); Thu, 2 Mar 2017 05:20:58 -0500 Received: from DM2PR03CA0032.namprd03.prod.outlook.com (10.141.96.31) by BY2PR0301MB0725.namprd03.prod.outlook.com (10.160.63.155) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.919.13; Thu, 2 Mar 2017 10:01:57 +0000 Received: from BY2FFO11OLC008.protection.gbl (2a01:111:f400:7c0c::106) by DM2PR03CA0032.outlook.office365.com (2a01:111:e400:2428::31) 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; Thu, 2 Mar 2017 10:01:57 +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; Thu, 2 Mar 2017 10:01:56 +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 v22A1OJC007146; Thu, 2 Mar 2017 03:01:52 -0700 From: Yangbo Lu To: , , Adrian Hunter , Rob Herring , Mark Rutland , Catalin Marinas , "Will Deacon" CC: , , Xiaobo Xie , Yangbo Lu Subject: [PATCH 7/9] mmc: sdhci-of-esdhc: add delay between tuning cycles Date: Thu, 2 Mar 2017 17:47:28 +0800 Message-ID: <1488448050-7574-8-git-send-email-yangbo.lu@nxp.com> X-Mailer: git-send-email 2.1.0.27.g96db324 In-Reply-To: <1488448050-7574-1-git-send-email-yangbo.lu@nxp.com> References: <1488448050-7574-1-git-send-email-yangbo.lu@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131329225170235654; (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)(336005)(39400400002)(39850400002)(39860400002)(39410400002)(39380400002)(39840400002)(39450400003)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(9170700003)(8936002)(50466002)(50226002)(2950100002)(33646002)(81166006)(6666003)(77096006)(48376002)(53936002)(92566002)(47776003)(50986999)(105606002)(106466001)(86362001)(76176999)(38730400002)(626004)(85426001)(5003940100001)(104016004)(8676002)(5660300001)(356003)(230783001)(305945005)(7416002)(54906002)(2906002)(189998001)(4326008)(8656002)(36756003)(68736007); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR0301MB0725; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; A:1; MX:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11OLC008; 1:+0vvNMSWp1X2W9jlZY86YUdzLlsiC7c2/+Zb0w7YZi6Jw2uLXb6fRKmSfOlKUoaTniVYD8V7PxU4NiF4olbK9WJVJSuNR9Vk89JK7P0FWI/NOVV5V3h/acznbK035FlapdQgpKm7/qWjUFE9r1Xx2EhrKT+UHtaTclF4BlfZd/Um+kVPVMnVTqHi2eOBUb+mmyGQgKSG9tlzI9l+buj3FDB9WE4RcvedZFwwZJ8seP9GavrsNoYbCQGuxLcsx92Dlh9qjLfGwLdCPrDJNw7VJS+wIiASj2AwGeSfIVm89ayXflSs791+Qqlr9xqB7rlfDZhnVaFcaBw2fFGQd1VihprvxSs6i0yY/CBvHDiUf87yebvf5k62okmy+pWEszDNwa19O/PWjB+bY/iFH1LDRS2ncIBZ1P8MNoaNS9AljVGNPp55EmQtK0k2dgx+8S0Wry6tYNjI1g6bmSeyIJUWsipvLXf8zBK5apEGYC4clTlvUlbM2Nz96BX0ILH15u4PlGXV43AFWiY8B0y+qAw4KIr9Tf78NQ90KJZtNIghQ6aEFIKOmMZJEppC6LZUwjMCy3hFChpoAuJIGfNzF1v42XdaPwhZNTxc2NlVDySQu5MzV8nN3q+NZUjJoXTaKe/fqt6GM4DPvlJ1eXvc+KmSbDmC17jRkxbS62CLZG9+YElHAmbFKwWyMgiANXEp0RMqxUKhyKUKHNV1metXCMRaYYchSzawuT9D7lL6a7R8+U5CX3fScfqrW/cD+yL/eBYq MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: db96438b-ccda-4769-3106-08d46153295d X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BY2PR0301MB0725; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB0725; 3:b8WNVowfgWxWDqxNIQbbRVNvyJHOPvr+RxfW13ODc5iNJXZX/weaF5LWAM5++39DcA7auCgMLPJCP2SFCNHI5MzK8FmxQYHvb+lr0EBW5Y/nbNd/CRe3tLSZ7w9ZK9HPr5l90oA1WqCRMjHGjR5D3uRMsUMQ0UhPjFa6mTMqdwCgLfaJlUT9UblTLuPhWIpJS3WnkbNX329K9CeE60HNVjOvAQ3N/z9OkrRvOxNZuYlEqxX7WWawGojwZFM9ZL277/0/nngEX8asYITVTmtVXYrBna+cQKvTgzo9T8amZXBDKCaXPy28ty9rnqMa96wP/x6P9IDsnKZpWayIVAqFAVLToJ7CvZebSvz152a+5k21rpDDcQxYnmh5zC9kru2M; 25:I3DtMWdP/JGd3RJrTecDTalFN/SI9WowNtNdg/q2J0Oe0QDDNS/tXXGjYd/Y+CPIWxb4x67MI85zIbm7xEPzvclk0thCCS8RZtH23gxfLdv+3Ft5h2i2y00358b3hRC0dC/b6e651tHCAPsxJ/Wb1oG3n7hzfswDGmDCTLuHD62PUEws0VgmguHk3gUMNKURnxBk68PiYW/6/tus3fmfFNotZZNOLeRe+8ycKoBU8h2COTog6MA0b/Y9aWq0lLDaCSSZXFNY1oaUH7GXKYqD/E+zKeoMAW/gwh36wjqDujxpgHeQyJnlffWBzKqj8mobs5VHykuMvrLZamhDviftYpMpp/WsXsQROpl8gky04jg9XRSGZLYcNtkTypXT2StEj3yNeNRFK369sYDtMmZ2yiorGsW9ZOR2QhZET8LamI7bZsNMIBIVoYNOMecx/bzl/GH/jl3V3bvtiJ4AkIsYyQ== X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB0725; 31:wzHMdxOerkTjN8efFNom3osn8nDW9h1aOc6XYSZOI5DfK7G6UhnKsmeBLWJLqwXT2GEyIV7GehUb3TnmLSA+hVYoe7PH4aOWG9tpk8+vIMqYD9AMiR0hV/xZS4gINHwO8UbM7d0+68Nie91Qk3sKuYVQocBZQzHcsVzx3bfZJR/AeBPzU7xrayt1roEjwnNxYUw+PXZzhWVuGIjyfolhcSx6uYHDFO9fqSJ/oHNIXbNH5tefqawNu/0KkjCUh69/6WQh2IUKfGf0p4WQMofplHNFNmOQ5JHS1MR6FWhuLnY= 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)(13015025)(13017025)(13023025)(13024025)(13018025)(10201501046)(3002001)(6055026)(6096035)(20161123561025)(20161123559025)(20161123556025)(20161123565025)(20161123563025); SRVR:BY2PR0301MB0725; BCL:0; PCL:0; RULEID:(400006); SRVR:BY2PR0301MB0725; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB0725; 4:C22QrmQlAcESSBv047dKKKfwF+G2cr+NGfz26e9dRmvR0Fdqj+qMyyqRJSu7Xop/siX1kj36EFQRhP0mYayZ8UwT6tVCTnuTmFu0pjuiQQ1fLgtS7PiV97SppVZizWpdCBTJb40eJzLq63feQk9j5EtoQhR/2neOgDi3Cwhu9qYiJKUEQeGrFbJ3DddJKk3X0YmnPazhKx5f+yzKSE0z1nFa3d7q3Q8bAKkfjRD05eRGuCl8UZm/ACwMzPBtlmFYL3+j6WFXlJaJW1VKkcql8d2JfasxlQHLkqwymyScrciG7iiHGh7WyU3iGHum9XcJDcv2YhfmzdgG7mexK0TBm3WlC9n3mne2DyKknG9leoSCxp0rONPD5NgWmvZAc2llDIeYWba//L/RFPA5PlpQ3GPnUiCBxoDhowkU7vVSV/NWkgrWfkO7lfS/in3sqo5hWgNEROe+HFYY9Br1l+Dw6G+DUaUkJsvbcdueZhqqn2NuHJ9BEQgePCP37WK/5sfXCgS+9RRlpMgiedFFGyt0prSD86WHmAYA28W8BXL/xoY9+0VWwL0k1ShDU9okLWWNBiYl5PSrvvMI1urs/RFRGQZKA6Mdkjv+PN+3bQFJcXdURwkW7Lar9d68BgJaMgrm0x+y13E9IAAPLFGAb9etmUk/zY/J+v+1hRnRg64ajQBbUOTCMwlor+fdzQNBisYgcuD0FiGOlrHq8TiIa7da8QTgT6m0tqAXDlnwH84OTZqjM6FkRcvuofr3kTkt7ImD X-Forefront-PRVS: 023495660C X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR0301MB0725; 23:FfB/cm2lKqyrjJyjAMC93cOhy3B5N2rsdUkonwb?= =?us-ascii?Q?yzs16PWEQoIh1ZMeNMUbTFo+4RqJOYouXDvW0ZUxh0rRWNQJAvOpu+B+guO+?= =?us-ascii?Q?UI5B+AJpKSptbZT7HI1hlfoR+jKeelBbclBBYtiIEfkU3D0y6M6WEqFtVKWq?= =?us-ascii?Q?dpy3kaiLtMgGg2wRHNS94eNNlpuXN/jHKAA3LzaAewc2daS94hceQiYXEiWq?= =?us-ascii?Q?JObAnWpPRnf1TLOoFftB8HTbb7XHqhmdPFVcEBis+eRiGF279lB3f63nTh3U?= =?us-ascii?Q?bkew0bvwUnOzcU0dwEMcm9WnpyFuPcoPh56PXnARf+FTFoyutv+ASipQdZ0p?= =?us-ascii?Q?b50YNOySRD0bFFzcUNbUN66jfOU6pbTJoSehExN+p3SVl3965+YO59ebDWxs?= =?us-ascii?Q?xepAxCkoMhcIKJ/UbvzKuiZ9vjSY8FV9IvQ07mP47JX2E/uivHyG9AHfviaV?= =?us-ascii?Q?4C5BieZD25GchSTobaeUTFiNcLbyJpgUuCNnJvAm6LTNiSKtS8BkFhgeiCSY?= =?us-ascii?Q?xur9mSiobGFYv/56kChPmtCShqLywObpkkRO8BV5qGaO5TTOUwCClXzBGPGY?= =?us-ascii?Q?rsVvZMThZSrgVqwKaR0YU44UUQlYPaMp6JpzT0D0PhAnejVh24DzkgEporIR?= =?us-ascii?Q?imA1JIXUB9kn0Jblf/kUWB7pqqnqZ3i2RAr76bxI+CLq0pBuEZ/ZrOWbW9K4?= =?us-ascii?Q?0k/q7chhyaYzsVBg3/Ru6c6uQ2EmAtguv2+fwRTYX3/31aHsn/xXCH8yTl9x?= =?us-ascii?Q?xEWBYi5ePX2TpziGbzzCnxyyNI/DWsyd9rv+v889GD7SBff/gaLiwaIXayDl?= =?us-ascii?Q?fM8pVYi5hu9tFu501u21kVWmoiVszPS0kGy6wp0crssPhp5zR9gGRaGNedjp?= =?us-ascii?Q?YGJgALHLuIazoaZoMtAlD3uElrDCZgr3H5V5Cw+7mPr5tZNwMe/1YwCatx0e?= =?us-ascii?Q?2+zx3clF190e9QbRzbFpNsccgoXWf0juA3rpgbjz4uFEmEmYyvMoC06qxj1P?= =?us-ascii?Q?IgfFvnKQtfKrbk3bz8BmphfxDs57yJF2VzZNKm4/659zCCD2W6/vu7Lb9wnd?= =?us-ascii?Q?wnjdN0AwTzHiofXVeF3r5DzuIEe3S7bQzzlGPhBlv+5Ur70U7zH4vh+7jj1Z?= =?us-ascii?Q?FPdMRqwUSBgLCMFGYuqsDp/P2I6oFf9c9iUQuqsmfC9HoHebWjStiJzicc6X?= =?us-ascii?Q?EIJGnN7dn5JkWElUIvkHZkSuV2FQKYTYDs4s/v83eX7YXsjbCfu9CsJGQ4/V?= =?us-ascii?Q?9QIUWu4CJ+CHSmGeKNpnlkF6tVZlVJowCsZMXwxzM?= X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB0725; 6:AP1G7Gpz8iBemAxfveLEtaYucym+W+r5Blqm9AwZqoiWVHkpAKbewUbyJBJVHkh7s/f6ryOxkJHVe5IEXsgHIprN8Y7FIEm4wdjLe7+agUOjDu1F8UcnZpzDNLURhq7Qglsms1PmBsVw9cT7Dl3XfFKHqeIUaxQRZRE3qMdYUbdPgErhTFYaCOFvM9g3/z9uhMAHPj5112V4oyJJxXyFVdkKpsl50yJpcfMTJ/Krggp7xbNiNhHlWjztGcFR8QzwkM48SFsYIpYINGfY+AQpCyhVJ7rgppNzteO39VPrhVd1eqg6IODEti5ONLgak9QSjladEWKzjsUGveP4qG4psbFtaOzQ3SsoWHF/X3zuQAeiemBp8cI3V6LoW3UfVsF1eOCC8O4YH3HXIyNVeEHIhIviVJljaIQ+XBrOKCpjgxk=; 5:99l1Iwfsx57L2WVQDjIF72RH9+RzNz0C5rfIFW6UXokBqEe4Mb5tNJW0TF9qiLWNohFfhq5l4QTge757RrO1Ahnr8ZjgdvttI4CeVH/O4dNsZ6loIalghxHC+CaUy+Fb5jdwG82MgStIFASOwPLldXe+kJFdRBWUdEexaADzZtD84K5EUHuxLz0pBDbuDIdY; 24:pXtXi53chY1/p1A4qKic3+n27REPwKxCGPXD6wvvUYqWKL8TgPCHvsvQu689SuWpb9gwXnx89O5wdR94xlPoIeKRfyOGKFgEHe5jWwb82rw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB0725; 7:ooTUFa0JyQcI1fPSQOuDTuu9URv4WioKAnG7Ibh5OILqaEVNgh6tvZupCrETs5bN9EihpRRhgP3V7his0OYhK9YEuI8y7w3i+5MmqfAhX603zs7hELDQrEql38TVDbOcL8M1gQWu17nj+EeBnx+9DZZaRHR98z0ri6xekWHGx/yD0bHz0rmpjRKA68avnyWlElN/yfAH75pSdqgQbnIB4GLzVstBt/lmu0tf5CZChYKPfRnwFTYfoKLUO8bzjZub6u1uTRI/a6vuQKe2PKz1KPFP0w5Um1A+91RS4p3hm3hLtGvZ7+OtU30CE/KXessy0B5VNK9SAFmX+9ln/FgsRg== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Mar 2017 10:01:56.8051 (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: BY2PR0301MB0725 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 --- 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 b26a780..3672c5a 100644 --- a/drivers/mmc/host/sdhci-of-esdhc.c +++ b/drivers/mmc/host/sdhci-of-esdhc.c @@ -823,6 +823,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)