From patchwork Mon Mar 27 07:49:40 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangbo Lu X-Patchwork-Id: 9645523 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 E9DC3602D6 for ; Mon, 27 Mar 2017 08:05:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DBE882815E for ; Mon, 27 Mar 2017 08:05:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D086A28338; Mon, 27 Mar 2017 08:05:41 +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=-1.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 5C9A62815E for ; Mon, 27 Mar 2017 08:05:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=RB6TwentDjoYePQfV4J2Mkb+1tJ6TnbS5SsiSwmFEoE=; b=hBxw5UiNEFtXmW quBZsgfsds4Pp7WeZeLRlr8GscMqypZjLfP2Q+FXSfhaC+qvLfCj+TxUMdU+u05NzHJTulVNjEcxs POiOYCKIZjYPh+xiaoy+2Xu732HTQcAVt3+daAnvuVKGSoXZ6LR5K7Cfh9dnOI47/CXNgLq3ihJ+e 6IUBCB2a3mtIHjPnCVN4VPLaeugd/34e0N/5wk1Ml43x6Vr8M2n2DbV0G6rog/kK/99RtnYr3PdZu 7V0YCiXusmjp4sTgS9XYosg1A4uwqk0GPYkvBHk4mkHEkmlvwxpkBRC3T0xl5EyaB3rKlEtak0c+k IdEmK0UU8sx1w9GRcxDw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1csPee-0007rg-On; Mon, 27 Mar 2017 08:05:32 +0000 Received: from mail-by2nam03on0070.outbound.protection.outlook.com ([104.47.42.70] helo=NAM03-BY2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1csPdw-0005it-Jl for linux-arm-kernel@lists.infradead.org; Mon, 27 Mar 2017 08:04:51 +0000 Received: from BN6PR03CA0036.namprd03.prod.outlook.com (10.175.124.22) by BY2PR0301MB1957.namprd03.prod.outlook.com (10.163.196.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.991.14; Mon, 27 Mar 2017 08:04:26 +0000 Received: from BL2FFO11OLC004.protection.gbl (2a01:111:f400:7c09::180) by BN6PR03CA0036.outlook.office365.com (2603:10b6:404:10c::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.991.14 via Frontend Transport; Mon, 27 Mar 2017 08:04:26 +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 BL2FFO11OLC004.mail.protection.outlook.com (10.173.161.188) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.977.7 via Frontend Transport; Mon, 27 Mar 2017 08:04:26 +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 v2R842kp024493; Mon, 27 Mar 2017 01:04:22 -0700 From: Yangbo Lu To: , , , , Adrian Hunter , Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon Subject: [v3, 5/7] mmc: sdhci-of-esdhc: add delay between tuning cycles Date: Mon, 27 Mar 2017 15:49:40 +0800 Message-ID: <1490600982-5410-6-git-send-email-yangbo.lu@nxp.com> X-Mailer: git-send-email 2.1.0.27.g96db324 In-Reply-To: <1490600982-5410-1-git-send-email-yangbo.lu@nxp.com> References: <1490600982-5410-1-git-send-email-yangbo.lu@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131350754667745182; (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)(39860400002)(39400400002)(39380400002)(39850400002)(39450400003)(39410400002)(39840400002)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(9170700003)(106466001)(356003)(5660300001)(81166006)(50986999)(105606002)(8676002)(53936002)(8936002)(7416002)(2906002)(230783001)(76176999)(68736007)(5003940100001)(48376002)(50466002)(50226002)(8656002)(305945005)(54906002)(77096006)(2201001)(33646002)(4326008)(47776003)(189998001)(38730400002)(6666003)(85426001)(104016004)(36756003)(2950100002)(86362001); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR0301MB1957; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; A:1; MX:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11OLC004; 1:tOYKhHxIRCYvH967ONKWX5GOovYiYD/mlY7KARDSTrwOgbccE5p5A3S3A7+8ELPMFXQkCu7oIQ0VbjELmy8TuzQ20AJGDCHOGpzFwrfAII/HEckpwk2oYcRAmIBLY0yF1rtGfIwDA1S7LMMgcMF09pQdPnkoPBnJkCqPs+BFbbRVmL7XODjgnUdnvv5WYOUEaf/gfzaWqkpEuqTLIqMtVzjr4+qoP5ZzPwmTmwi2RucEhZEItSESVpoSb890Oga3cEopVwidx6fia9kwzSsrOybkAycfMQnrRc8ISvKP7JbGl6mlDOWJ8W7aRUIbB/Sq0M3e1434IyX8tKA8GO4u6TiMhQ07PcAgWn5MXaSZYijpdvu7pwsV4DZHuZ5qSrxg1s75U5fiGpkF8zJBrLyS0Orn4SbMxmwNxJAdYC9E5NsBjHJVgWTFn0PMQiWs0KBa1A1eFCT0bnAZv81DE9yK3DF2sJiW8vXxOy2sDtINqtXcxxP+3OKYYJjC3NJTNhrN1HDHCIKKAbJNlMo6QoebX/b1XAfj0+hALvZoAckf72XglLua3+sYun5bnSq7dglWApUHtqP65WqHPzmSQrAGU0Z8Brl1BkPjk6tk9X4aGO4wGyxMy6vfTe97XLJTFXgx3wiLc0GazaAuilw82vJ5YSmfgY4Y9qmi0DjCHuli9KtSrqJYEHf7gvA9oZgoBmElKr2jWJOYCiR2xnvwEFGCAxRPZTUY2OHPYF/mLUaztwuojl+u5ZkGnXOmq2qyXeAe MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: e9850bc6-96c9-47d3-ee41-08d474e7e367 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BY2PR0301MB1957; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB1957; 3:nyUjymmcjFI1/VUnTOuAM8NwmBpr9Eg4ws7AEW/hn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gU5kEygEeWw7tmwpirzzonnefviFr2rAeavUPCbO+q8zSiRoMsQXQEs4LLl4K77u5VcbSYlWMH4VqfpA= 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)(13018025)(13023025)(8121501046)(13024025)(13017025)(5005006)(13015025)(3002001)(10201501046)(6055026)(6096035)(20161123565025)(20161123561025)(20161123559025)(20161123563025)(20161123556025); SRVR:BY2PR0301MB1957; BCL:0; PCL:0; RULEID:(400006); SRVR:BY2PR0301MB1957; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB1957; 4:5MDgReRyChK9ywfmaUtgkOZHfqJ7gAGIeuxsj3GLxQuOmxg0rZaLGwHRSEud/ASQURySD3Kv2B6ldzyPSNzzfBE4uWfbCQG6IW8XBpbtn6UfjmSyYXVDoZz1kzZ3fthDJAulTqUIH90E5CXXb8URirKurAmUMvWo3xJupOacMf92CzS5L1hCJ1qzJcFmnzRa686x9NEry3hmzKFViYgKhJ48zKOJEPrUEFwICab2peeejfVbiF3+4yLjcA37DT8BCskgwIbqNh2jIHu5EuUWGk5Dt0HlNO7NeH2A2ofQRcUjEOhigCvsKtRNHjjAGD54KDnycy++baQcv6z6XeEVP+DmSzQiaDwzdQm4qLvcAu0keAXVKv57WtDWlTEpJzTJX5U/hbKvCVp41KF699iHDL7B8DtejNjdVhVgrH9vpKHAIVYJhaqREXsStIoHrFOcwLJtMxyekh12DXHvpTJqkdLKaApF93q0nVid/N/Hd/R2f8U/CGFpXavz9byVpQ2lJ3Yod8yaixjpXSZ3OLlSursRG4Xpy+rYJBLea5x1voiLqkojpyT59b08qTCTwr5v0IQQd6vKiJDV3+lWdpgxyTRv3/oZA6+S4xJQFp0Q/P7f3gMjh0rgZtiH2GI0Q3gfEBh0VMOzFyqP7LziPyjHA9cntJPAi3NbZx6xXN4xTd/L6Mc7/oXutc2FlrKjOESD1IiUzkGFjvo92PUZgyfXpxelooZca5bY9TZlsjK5t9ykZG7F2Rks7yA4tbQ0SpsT X-Forefront-PRVS: 02596AB7DA X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR0301MB1957; 23:DHY0/uU0qi2jhsYrp6bg1Gy50k43ia8i0g1QfPZ?= =?us-ascii?Q?JuY8rPWmUoZgT81xj8jZ25Hxi6C8SLJVz54MbYF8La7p/sWoGZs2QW6QkeNJ?= =?us-ascii?Q?b/EK5zUIwLSAdEKs1SFriYe69uMiYocMidF64jYJREi+itvSyj9fGD/kKtLJ?= =?us-ascii?Q?KUI4OvXrjlNw3l/1mhYDCWtdcPCd8Lxnc7kCa7BKl5X4tp4quiXs4vSn4old?= =?us-ascii?Q?3F25W3ACfcH/PDf1zTc5mIqgld8SDSKihu7DthpLgYww7ntReQcatzJ35HlG?= =?us-ascii?Q?nNx0DTpjGw9e2Rcm5kYw3X2SyzIRBGMVf+eqdIQ7BVZfu9qUmvWOk5t8vD4F?= =?us-ascii?Q?lkoGIvgIC2NBShyBO4PDe8wiAA/Sw8aA6YxCZA6nXyb0d6fVfHFxFLnd1++e?= =?us-ascii?Q?2iHv3VTuVCWu2U+nFSathmv2znOpCylYlkggjTrkq+cskdwrD/DQktS0U/gX?= =?us-ascii?Q?xfFve970mo2fgkzCNpSGxSb9lDb/GKt6zweXDu2DMKKfEhQcyHsNF+0v0VS2?= =?us-ascii?Q?DzlLKNAH8wVVNvcOjuIfyACmyeVTK/03sLloqEP562CqEkR7ItN2jVEKj5RO?= =?us-ascii?Q?+46jV/BNJOcjfkua7eKfAD3OS6m0N6ODoyncUMLeMv3f+bML+HxSi+DfcEeP?= =?us-ascii?Q?9UgSMtfx1uI03N1Y9kkKKpCNqGO2tPZtnwYj029nWvuQdJaPbiZxIi39x7+T?= =?us-ascii?Q?DY3mQczdIqG+L+ktkHIMBiEu6UWxqEJKHYJwHOWRVjWO4m/FVA6ohWcvcLJA?= =?us-ascii?Q?GrHl4/XlB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40lRTtGgWII/R0VP2AJR/QIKPj7eHk5wssuyNlt8AcJLs/fUehbsod73bg+o/mDqfyQ0ZOp3XC1T8ZmK+N/B57V8OIwKQuJnRBgSVZ6nYmB4JH8UQLHfz6oX+05PdWppcjte348LpuhYsPsG4n1TEKshD1h8wsLppUCeMVi6kq8; 24:kZTqtHhdrwWHUTJKWZbbqvQp1YUhImsju0+e71nNPmjIK6rrXh6mreFpF3Ouu0b7GDWzotTA/BjPG3zd3Sz2xR/wRNtwyJxJhzJwxLkB+8o= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB1957; 7:OwbAzF13+Y7ZhwzXESp/ZgTuVCbIyTmgbYd9qRzoAC6S0ELzXdBrsc8L0NSQrG12oH6MJd3B8M2vY/saRBCc7dxNiMYxwvzLt71Mu5/SJWVom/PTj8F68yujTHgK4Xyz4zbAVU1QfAU3doHy+Y2mwCIJPqR1DfT6gg/egoQoJ426Vv+PBXvBFAvne2Hussl841wCIVey9oGcne924fkikveINjR84dgudojTL/fi3p7sRpmBgFvOKYHSae0FvA1bPsobWtXCGdT62TRmpcFr7o1D9PB7ktAAhj0z4UVQ+2orPB5MT/fVBcghyVZIkXsTwjiHbcXGMNpECDIdNVP5ZA== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Mar 2017 08:04:26.5873 (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: BY2PR0301MB1957 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170327_010448_687984_BEDBF873 X-CRM114-Status: GOOD ( 14.10 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Xiaobo Xie , Yangbo Lu Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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. --- 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 8c8e147..0754ef4 100644 --- a/drivers/mmc/host/sdhci-of-esdhc.c +++ b/drivers/mmc/host/sdhci-of-esdhc.c @@ -807,6 +807,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);