hw/sd/sdhci: Set SDHC_NIS_DMA bit when appropriate
authorBernhard Beschow <shentey@gmail.com>
Wed, 8 Jan 2025 09:25:25 +0000 (10:25 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 13 Jan 2025 16:16:04 +0000 (17:16 +0100)
commit5df50b8e97377d2468bd8759ec3275e747a147bb
tree27cd61fb5f870788b43bc03241ee7343ac4718c6
parent4572dacc33e232a7c951ba7ba7a20887fad29e71
hw/sd/sdhci: Set SDHC_NIS_DMA bit when appropriate

In U-Boot, the fsl_esdhc[_imx] driver waits for both "transmit completed" and
"DMA" bits in esdhc_send_cmd_common() by means of DATA_COMPLETE constant. QEMU
currently misses to set the DMA bit which causes the driver to loop forever. Fix
that by setting the DMA bit if enabled when doing DMA block transfers.

Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20250108092538.11474-2-shentey@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
hw/sd/sdhci.c