From: "Jaehoon Chung" <jh80.chung@samsung.com>
To: "'Jonas Karlman'" <jonas@kwiboo.se>,
"'Peng Fan'" <peng.fan@nxp.com>,
"'Tom Rini'" <trini@konsulko.com>
Cc: <u-boot@lists.denx.de>
Subject: RE: [PATCH 2/2] mmc: Add support for the no-mmc-hs400 prop
Date: Wed, 17 Apr 2024 08:34:19 +0900 [thread overview]
Message-ID: <000a01da9056$9a770710$cf651530$@samsung.com> (raw)
In-Reply-To: <20240408210619.3749231-2-jonas@kwiboo.se>
Hi
> -----Original Message-----
> From: Jonas Karlman <jonas@kwiboo.se>
> Sent: Tuesday, April 9, 2024 6:06 AM
> To: Peng Fan <peng.fan@nxp.com>; Jaehoon Chung <jh80.chung@samsung.com>; Tom Rini <trini@konsulko.com>
> Cc: Jonas Karlman <jonas@kwiboo.se>; u-boot@lists.denx.de
> Subject: [PATCH 2/2] mmc: Add support for the no-mmc-hs400 prop
>
> The linux commit f722e650d965 ("mmc: core: add support for disabling
> HS400 mode via DT") added support for a no-mmc-hs400 prop.
>
> Add support for the no-mmc-hs400 prop to disable HS400 host caps.
>
> Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
Best Regards,
Jaehoon Chung
> ---
> drivers/mmc/mmc-uclass.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drivers/mmc/mmc-uclass.c b/drivers/mmc/mmc-uclass.c
> index 1349da72b102..1b454e8ec758 100644
> --- a/drivers/mmc/mmc-uclass.c
> +++ b/drivers/mmc/mmc-uclass.c
> @@ -256,6 +256,9 @@ int mmc_of_parse(struct udevice *dev, struct mmc_config *cfg)
> cfg->host_caps |= MMC_CAP(MMC_HS_400) | MMC_CAP(MMC_HS_200);
> if (dev_read_bool(dev, "mmc-hs400-enhanced-strobe"))
> cfg->host_caps |= MMC_CAP(MMC_HS_400_ES);
> + if (dev_read_bool(dev, "no-mmc-hs400"))
> + cfg->host_caps &= ~(MMC_CAP(MMC_HS_400) |
> + MMC_CAP(MMC_HS_400_ES));
>
> if (dev_read_bool(dev, "non-removable")) {
> cfg->host_caps |= MMC_CAP_NONREMOVABLE;
> --
> 2.43.2
next prev parent reply other threads:[~2024-04-16 23:34 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-08 21:06 [PATCH 1/2] mmc: Imply HS200 cap with mmc-hs400 prop to match linux Jonas Karlman
2024-04-08 21:06 ` [PATCH 2/2] mmc: Add support for the no-mmc-hs400 prop Jonas Karlman
2024-04-08 21:17 ` Dragan Simic
2024-04-16 23:34 ` Jaehoon Chung [this message]
2024-04-08 21:17 ` [PATCH 1/2] mmc: Imply HS200 cap with mmc-hs400 prop to match linux Dragan Simic
2024-04-09 15:27 ` Quentin Schulz
2024-04-09 15:58 ` Jonas Karlman
2024-04-09 16:02 ` Quentin Schulz
2024-04-09 16:30 ` Jonas Karlman
2024-04-09 19:30 ` Dragan Simic
2024-04-10 8:47 ` Quentin Schulz
2024-04-10 9:24 ` Dragan Simic
2024-04-09 19:28 ` Dragan Simic
2024-04-10 8:56 ` Quentin Schulz
2024-04-10 9:22 ` Dragan Simic
2024-04-16 23:33 ` Jaehoon Chung
2024-04-17 1:28 ` Dragan Simic
2024-04-16 23:23 ` Jaehoon Chung
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='000a01da9056$9a770710$cf651530$@samsung.com' \
--to=jh80.chung@samsung.com \
--cc=jonas@kwiboo.se \
--cc=peng.fan@nxp.com \
--cc=trini@konsulko.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox