All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peng Fan <peng.fan@nxp.com>
To: u-boot@lists.denx.de
Subject: [v2, 05/11] mmc: add a hs400_tuning flag
Date: Mon, 20 Jul 2020 01:36:34 +0000	[thread overview]
Message-ID: <DB6PR0402MB276065FCA2B85EB2F4156EB7887B0@DB6PR0402MB2760.eurprd04.prod.outlook.com> (raw)
In-Reply-To: <20200717085024.19385-6-yangbo.lu@nxp.com>

> Subject: [v2, 05/11] mmc: add a hs400_tuning flag
> 
> Add a hs400_tuning flag to identify the tuning for HS400 mode.

Why? Please explain a bit more.

Thanks,
Peng.

> 
> Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
> ---
> Changes for v2:
> 	- None.
> ---
>  drivers/mmc/mmc.c | 2 ++
>  include/mmc.h     | 1 +
>  2 files changed, 3 insertions(+)
> 
> diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index
> a53f93a..a18e75d 100644
> --- a/drivers/mmc/mmc.c
> +++ b/drivers/mmc/mmc.c
> @@ -1976,7 +1976,9 @@ static int mmc_select_hs400(struct mmc *mmc)
>  	mmc_set_clock(mmc, mmc->tran_speed, false);
> 
>  	/* execute tuning if needed */
> +	mmc->hs400_tuning = 1;
>  	err = mmc_execute_tuning(mmc,
> MMC_CMD_SEND_TUNING_BLOCK_HS200);
> +	mmc->hs400_tuning = 0;
>  	if (err) {
>  		debug("tuning failed\n");
>  		return err;
> diff --git a/include/mmc.h b/include/mmc.h index 161b8bc..2399cc2 100644
> --- a/include/mmc.h
> +++ b/include/mmc.h
> @@ -707,6 +707,7 @@ struct mmc {
>  				  * accessing the boot partitions
>  				  */
>  	u32 quirks;
> +	u8 hs400_tuning;
>  };
> 
>  struct mmc_hwpart_conf {
> --
> 2.7.4

  reply	other threads:[~2020-07-20  1:36 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-17  8:50 [v2, 00/11] mmc: fsl_esdhc: support eMMC HS200/HS400 modes Yangbo Lu
2020-07-17  8:50 ` [v2, 01/11] mmc: add a reinit() API Yangbo Lu
2020-07-20  1:33   ` Peng Fan
2020-07-20  7:10     ` Y.b. Lu
2020-07-17  8:50 ` [v2, 02/11] mmc: fsl_esdhc: add a reinit() callback Yangbo Lu
2020-07-17  8:50 ` [v2, 03/11] mmc: fsl_esdhc: support tuning for eMMC HS200 Yangbo Lu
2020-07-17  8:50 ` [v2, 04/11] mmc: fsl_esdhc: clean TBCTL[TB_EN] manually during init Yangbo Lu
2020-07-17  8:50 ` [v2, 05/11] mmc: add a hs400_tuning flag Yangbo Lu
2020-07-20  1:36   ` Peng Fan [this message]
2020-07-20  7:30     ` Y.b. Lu
2020-07-17  8:50 ` [v2, 06/11] mmc: add a mmc_hs400_prepare_ddr() interface Yangbo Lu
2020-07-20  1:40   ` Peng Fan
2020-07-20  7:46     ` Y.b. Lu
2020-07-17  8:50 ` [v2, 07/11] mmc: fsl_esdhc: support eMMC HS400 mode Yangbo Lu
2020-07-20  1:41   ` Peng Fan
2020-07-20  7:49     ` Y.b. Lu
2020-07-17  8:50 ` [v2, 08/11] mmc: fsl_esdhc: fix mmc->clock with actual clock Yangbo Lu
2020-07-17  8:50 ` [v2, 09/11] mmc: fsl_esdhc: fix eMMC HS400 stability issue Yangbo Lu
2020-07-17  8:50 ` [v2, 10/11] arm: dts: lx2160ardb: support eMMC HS400 mode Yangbo Lu
2020-07-20  1:44   ` Peng Fan
2020-07-20  7:52     ` Y.b. Lu
2020-07-20  8:21       ` Peng Fan
2020-07-17  8:50 ` [v2, 11/11] configs: lx2160ardb: enable eMMC HS400 mode support Yangbo Lu

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=DB6PR0402MB276065FCA2B85EB2F4156EB7887B0@DB6PR0402MB2760.eurprd04.prod.outlook.com \
    --to=peng.fan@nxp.com \
    --cc=u-boot@lists.denx.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.