From: Jaehoon Chung <jh80.chung@gmail.com>
To: Marek Vasut <marex@denx.de>, u-boot@lists.denx.de
Cc: Ye Li <ye.li@nxp.com>, Fabio Estevam <festevam@denx.de>,
Jaehoon Chung <jh80.chung@samsung.com>,
Marcel Ziswiler <marcel.ziswiler@toradex.com>,
Max Krummenacher <max.krummenacher@toradex.com>,
Peng Fan <peng.fan@nxp.com>, Stefano Babic <sbabic@denx.de>
Subject: Re: [PATCH] mmc: fsl_esdhc: fix problem when using clk driver
Date: Fri, 7 Oct 2022 21:37:33 +0900 [thread overview]
Message-ID: <2eb41e26-6429-6ec2-8ed8-08d65a25e1ba@gmail.com> (raw)
In-Reply-To: <20220923222933.640838-1-marex@denx.de>
On 9/24/22 07:29, Marek Vasut wrote:
> From: Ye Li <ye.li@nxp.com>
>
> Move init_clk_usdhc to non-clk driver case, since assigned-clocks properties
> will initialize the clocks by clk driver.
>
> Signed-off-by: Ye Li <ye.li@nxp.com>
> Signed-off-by: Marek Vasut <marex@denx.de>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
Best Regards,
Jaehoon Chung
> ---
> NOTE: Was MLK-21848-5 fsl_esdhc: fix problem when using clk driver
> NOTE: Fixes SD SDR104 mode instability on MX8MP
> ---
> Cc: Fabio Estevam <festevam@denx.de>
> Cc: Jaehoon Chung <jh80.chung@samsung.com>
> Cc: Marcel Ziswiler <marcel.ziswiler@toradex.com>
> Cc: Max Krummenacher <max.krummenacher@toradex.com>
> Cc: Peng Fan <peng.fan@nxp.com>
> Cc: Stefano Babic <sbabic@denx.de>
> ---
> drivers/mmc/fsl_esdhc_imx.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/mmc/fsl_esdhc_imx.c b/drivers/mmc/fsl_esdhc_imx.c
> index 9befb190bdf..92b152fc979 100644
> --- a/drivers/mmc/fsl_esdhc_imx.c
> +++ b/drivers/mmc/fsl_esdhc_imx.c
> @@ -1519,8 +1519,6 @@ static int fsl_esdhc_probe(struct udevice *dev)
> * work as expected.
> */
>
> - init_clk_usdhc(dev_seq(dev));
> -
> #if CONFIG_IS_ENABLED(CLK)
> /* Assigned clock already set clock */
> ret = clk_get_by_name(dev, "per", &priv->per_clk);
> @@ -1536,6 +1534,8 @@ static int fsl_esdhc_probe(struct udevice *dev)
>
> priv->sdhc_clk = clk_get_rate(&priv->per_clk);
> #else
> + init_clk_usdhc(dev_seq(dev));
> +
> priv->sdhc_clk = mxc_get_clock(MXC_ESDHC_CLK + dev_seq(dev));
> if (priv->sdhc_clk <= 0) {
> dev_err(dev, "Unable to get clk for %s\n", dev->name);
next prev parent reply other threads:[~2022-10-07 12:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-23 22:29 [PATCH] mmc: fsl_esdhc: fix problem when using clk driver Marek Vasut
2022-10-07 12:37 ` Jaehoon Chung [this message]
2022-10-21 11:42 ` sbabic
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=2eb41e26-6429-6ec2-8ed8-08d65a25e1ba@gmail.com \
--to=jh80.chung@gmail.com \
--cc=festevam@denx.de \
--cc=jh80.chung@samsung.com \
--cc=marcel.ziswiler@toradex.com \
--cc=marex@denx.de \
--cc=max.krummenacher@toradex.com \
--cc=peng.fan@nxp.com \
--cc=sbabic@denx.de \
--cc=u-boot@lists.denx.de \
--cc=ye.li@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