public inbox for linux-mmc@vger.kernel.org
 help / color / mirror / Atom feed
From: Yangbo Lu <yangbo.lu@nxp.com>
To: linux-mmc@vger.kernel.org, ulf.hansson@linaro.org,
	Adrian Hunter <adrian.hunter@intel.com>
Cc: Xiaobo Xie <xiaobo.xie@nxp.com>, Yangbo Lu <yangbo.lu@nxp.com>
Subject: [v5, 5/5] mmc: sdhci-of-esdhc: add delay between tuning cycles
Date: Thu, 20 Apr 2017 16:14:44 +0800	[thread overview]
Message-ID: <1492676084-28218-6-git-send-email-yangbo.lu@nxp.com> (raw)
In-Reply-To: <1492676084-28218-1-git-send-email-yangbo.lu@nxp.com>

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 <yangbo.lu@nxp.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
---
Changes for v2:
	- None
Changes for v3:
	- Used a host member for tuning delay instead of a quirk.
Changes for v4:
	- None
Changes for v5:
	- Added Adrian's ACK
---
 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 607e512..7518360 100644
--- a/drivers/mmc/host/sdhci-of-esdhc.c
+++ b/drivers/mmc/host/sdhci-of-esdhc.c
@@ -810,6 +810,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);
 
-- 
2.1.0.27.g96db324


  parent reply	other threads:[~2017-04-20  8:29 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-20  8:14 [v5, 0/5] Add SD UHS-I and eMMC HS200 support for eSDHC Yangbo Lu
2017-04-20  8:14 ` [v5, 1/5] mmc: sdhci-of-esdhc: add peripheral clock support Yangbo Lu
2017-04-20  8:14 ` [v5, 2/5] mmc: sdhci-of-esdhc: add support for signal voltage switch Yangbo Lu
2017-04-20 14:06   ` Ulf Hansson
2017-04-26  3:04     ` Y.B. Lu
2017-04-20  8:14 ` [v5, 3/5] mmc: sdhci-of-esdhc: add tuning support Yangbo Lu
2017-04-20  8:14 ` [v5, 4/5] mmc: sdhci: Control the delay between tuning commands Yangbo Lu
2017-04-20  8:14 ` Yangbo Lu [this message]
2017-04-20 14:05 ` [v5, 0/5] Add SD UHS-I and eMMC HS200 support for eSDHC Ulf Hansson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1492676084-28218-6-git-send-email-yangbo.lu@nxp.com \
    --to=yangbo.lu@nxp.com \
    --cc=adrian.hunter@intel.com \
    --cc=linux-mmc@vger.kernel.org \
    --cc=ulf.hansson@linaro.org \
    --cc=xiaobo.xie@nxp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox