hw/sd/sdhci: Honor failed DMA transactions
commit78e619cbd5d5a30f0a849c183391b8f87f8099e6
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Wed, 15 Dec 2021 20:56:54 +0000 (15 21:56 +0100)
committerThomas Huth <thuth@redhat.com>
Mon, 21 Mar 2022 09:25:21 +0000 (21 10:25 +0100)
tree6ad33cc2999c6adeac40676f14b2aa91776b7323
parent19a5452723b51af74489d6cfa481b9d45d0b565a
hw/sd/sdhci: Honor failed DMA transactions

DMA transactions might fail. The DMA API returns a MemTxResult,
indicating such failures. Do not ignore it. On failure, raise
the ADMA error flag and eventually triggering an IRQ (see spec
chapter 1.13.5: "ADMA2 States").

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20211215205656.488940-2-philmd@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
hw/sd/sdhci.c