From: Jaehoon Chung <jh80.chung@samsung.com>
To: Marcel Ziswiler <marcel@ziswiler.com>, u-boot@lists.denx.de
Cc: Michael Walle <michael@walle.cc>,
"NXP i . MX U-Boot Team" <uboot-imx@nxp.com>,
Sean Anderson <sean.anderson@seco.com>,
Marcel Ziswiler <marcel.ziswiler@toradex.com>,
Fabio Estevam <festevam@gmail.com>, Peng Fan <peng.fan@nxp.com>,
Stefano Babic <sbabic@denx.de>
Subject: Re: [PATCH v1] mmc: fsl_esdhc_imx: fix watermark level in dma
Date: Wed, 9 Feb 2022 08:37:56 +0900 [thread overview]
Message-ID: <ffb6fc01-9963-91eb-a706-e96db7e151c0@samsung.com> (raw)
In-Reply-To: <20220131220831.386771-1-marcel@ziswiler.com>
On 2/1/22 07:08, Marcel Ziswiler wrote:
> From: Marcel Ziswiler <marcel.ziswiler@toradex.com>
>
> Seems that we need the waterlevel setting not only for PIO mode as
> without this at least the i.MX 8M Mini won't boot anymore when being
> written by such a U-Boot. Corruption has also been observed both on
> the i.MX 6 as well as i.MX 8M Mini when using ums on the eMMC. Fix
> this by setting the watermark level again regardless of whether in
> DMA or PIO mode.
>
> Fixes: 41c6a22fc296 ("mmc: fsl_esdhc_imx: simplify esdhc_setup_data()")
> Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Applied on u-boot-mmc/master.
Thanks!
Best Regards,
Jaehoon Chung
>
> ---
>
> drivers/mmc/fsl_esdhc_imx.c | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/mmc/fsl_esdhc_imx.c b/drivers/mmc/fsl_esdhc_imx.c
> index 9299635f50..efa5ed0af7 100644
> --- a/drivers/mmc/fsl_esdhc_imx.c
> +++ b/drivers/mmc/fsl_esdhc_imx.c
> @@ -336,9 +336,8 @@ static int esdhc_setup_data(struct fsl_esdhc_priv *priv, struct mmc *mmc,
> }
> }
>
> - if (IS_ENABLED(CONFIG_SYS_FSL_ESDHC_USE_PIO))
> - esdhc_setup_watermark_level(priv, data);
> - else
> + esdhc_setup_watermark_level(priv, data);
> + if (!IS_ENABLED(CONFIG_SYS_FSL_ESDHC_USE_PIO))
> esdhc_setup_dma(priv, data);
>
> /* Calculate the timeout period for data transactions */
prev parent reply other threads:[~2022-02-08 23:37 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20220131220855epcas1p1a3c5547afa644ae58e98bc7d7ff2baa5@epcas1p1.samsung.com>
2022-01-31 22:08 ` [PATCH v1] mmc: fsl_esdhc_imx: fix watermark level in dma Marcel Ziswiler
2022-02-01 1:44 ` Fabio Estevam
2022-02-02 17:08 ` Fabio Estevam
2022-02-08 1:32 ` Fabio Estevam
2022-02-08 2:15 ` Jaehoon Chung
2022-02-08 23:37 ` Jaehoon Chung [this message]
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=ffb6fc01-9963-91eb-a706-e96db7e151c0@samsung.com \
--to=jh80.chung@samsung.com \
--cc=festevam@gmail.com \
--cc=marcel.ziswiler@toradex.com \
--cc=marcel@ziswiler.com \
--cc=michael@walle.cc \
--cc=peng.fan@nxp.com \
--cc=sbabic@denx.de \
--cc=sean.anderson@seco.com \
--cc=u-boot@lists.denx.de \
--cc=uboot-imx@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