diff mbox series

[1/2] mmc: sdhci-esdhc-imx: add delay between tuning cycles

Message ID 20181228084327.9664-1-haibo.chen@nxp.com (mailing list archive)
State New, archived
Headers show
Series [1/2] mmc: sdhci-esdhc-imx: add delay between tuning cycles | expand

Commit Message

Bough Chen Dec. 28, 2018, 8:35 a.m. UTC
It's observed that i.MX uSDHC needed delay between tuning
cycles for HS200 successful tuning. This patch is to set 1ms
delay for that.

Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
---
 drivers/mmc/host/sdhci-esdhc-imx.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Adrian Hunter Dec. 28, 2018, 9:16 a.m. UTC | #1
On 28/12/18 10:35 AM, BOUGH CHEN wrote:
> It's observed that i.MX uSDHC needed delay between tuning
> cycles for HS200 successful tuning. This patch is to set 1ms
> delay for that.
> 
> Signed-off-by: Haibo Chen <haibo.chen@nxp.com>

Acked-by: Adrian Hunter <adrian.hunter@intel.com>

> ---
>  drivers/mmc/host/sdhci-esdhc-imx.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c
> index a6075ecf3b08..624ac7914196 100644
> --- a/drivers/mmc/host/sdhci-esdhc-imx.c
> +++ b/drivers/mmc/host/sdhci-esdhc-imx.c
> @@ -1376,6 +1376,8 @@ static int sdhci_esdhc_imx_probe(struct platform_device *pdev)
>  	if (err)
>  		goto disable_ahb_clk;
>  
> +	host->tuning_delay = 1;
> +
>  	sdhci_esdhc_imx_hwinit(host);
>  
>  	err = sdhci_add_host(host);
>
Ulf Hansson Jan. 14, 2019, 11:44 a.m. UTC | #2
On Fri, 28 Dec 2018 at 09:35, BOUGH CHEN <haibo.chen@nxp.com> wrote:
>
> It's observed that i.MX uSDHC needed delay between tuning
> cycles for HS200 successful tuning. This patch is to set 1ms
> delay for that.
>
> Signed-off-by: Haibo Chen <haibo.chen@nxp.com>

Applied for next, thanks!

Kind regards
Uffe


> ---
>  drivers/mmc/host/sdhci-esdhc-imx.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c
> index a6075ecf3b08..624ac7914196 100644
> --- a/drivers/mmc/host/sdhci-esdhc-imx.c
> +++ b/drivers/mmc/host/sdhci-esdhc-imx.c
> @@ -1376,6 +1376,8 @@ static int sdhci_esdhc_imx_probe(struct platform_device *pdev)
>         if (err)
>                 goto disable_ahb_clk;
>
> +       host->tuning_delay = 1;
> +
>         sdhci_esdhc_imx_hwinit(host);
>
>         err = sdhci_add_host(host);
> --
> 2.17.1
>
diff mbox series

Patch

diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c
index a6075ecf3b08..624ac7914196 100644
--- a/drivers/mmc/host/sdhci-esdhc-imx.c
+++ b/drivers/mmc/host/sdhci-esdhc-imx.c
@@ -1376,6 +1376,8 @@  static int sdhci_esdhc_imx_probe(struct platform_device *pdev)
 	if (err)
 		goto disable_ahb_clk;
 
+	host->tuning_delay = 1;
+
 	sdhci_esdhc_imx_hwinit(host);
 
 	err = sdhci_add_host(host);