]> git.baikalelectronics.ru Git - uboot.git/commit
mmc: fsl_esdhc_imx: fix watermark level in dma
authorMarcel Ziswiler <marcel.ziswiler@toradex.com>
Mon, 31 Jan 2022 22:08:31 +0000 (23:08 +0100)
committerJaehoon Chung <jh80.chung@samsung.com>
Tue, 8 Feb 2022 23:33:28 +0000 (08:33 +0900)
commit5f9a41a4ba4cf50458defa2776cbde86394fe8f1
tree46814f77efed7ce7c4c1919009aaf613fe802228
parent6ebcc5039878ddc0a384c6fefffc6d58f39f03b4
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: f5fb36de3560 ("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>
drivers/mmc/fsl_esdhc_imx.c