From mboxrd@z Thu Jan 1 00:00:00 1970 From: 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> References: <1488448050-7574-1-git-send-email-yangbo.lu@nxp.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1488448050-7574-1-git-send-email-yangbo.lu@nxp.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org To: linux-mmc@vger.kernel.org, ulf.hansson@linaro.org, Adrian Hunter , Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon Cc: devicetree@vger.kernel.org, Xiaobo Xie , linux-arm-kernel@lists.infradead.org, Yangbo Lu List-Id: devicetree@vger.kernel.org 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) -- 2.1.0.27.g96db324