diff options
author | Edgar E. Iglesias <edgar.iglesias@xilinx.com> | 2020-04-02 15:47:19 +0200 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2020-04-06 10:59:56 +0100 |
commit | 4fc4678c6051431b75d3be9304b9c23536f3bb9c (patch) | |
tree | 53ee5f1b048361c677cec66eaa785a1d71f9a16a /hw/dma | |
parent | 28009852aa6b2d1574ba1bfd2461f274cb43fb49 (diff) |
dma/xlnx-zdma: Clear DMA_DONE when halting
Clear DMA_DONE when halting the DMA channel.
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Reviewed-by: Francisco Iglesias <frasse.iglesias@gmail.com>
Acked-by: Alistair Francis <alistair.francis@wdc.com>
Message-id: 20200402134721.27863-4-edgar.iglesias@gmail.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/dma')
-rw-r--r-- | hw/dma/xlnx-zdma.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/dma/xlnx-zdma.c b/hw/dma/xlnx-zdma.c index 6a4699757a..dd893bc420 100644 --- a/hw/dma/xlnx-zdma.c +++ b/hw/dma/xlnx-zdma.c @@ -520,6 +520,7 @@ static void zdma_process_descr(XlnxZDMA *s) if (src_cmd == CMD_HALT) { zdma_set_state(s, PAUSED); ARRAY_FIELD_DP32(s->regs, ZDMA_CH_ISR, DMA_PAUSE, 1); + ARRAY_FIELD_DP32(s->regs, ZDMA_CH_ISR, DMA_DONE, false); zdma_ch_imr_update_irq(s); return; } |