mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 15:37:23 +00:00
mmc: fsl_esdhc_imx: fix watermark level in dma
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: 41c6a22fc2
("mmc: fsl_esdhc_imx: simplify esdhc_setup_data()")
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Tested-by: Fabio Estevam <festevam@gmail.com>
This commit is contained in:
parent
1d4b3b2fcb
commit
14448e9c97
1 changed files with 2 additions and 3 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue