All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Edgar E. Iglesias" <edgar.iglesias@gmail.com>
To: qemu-devel@nongnu.org
Cc: figlesia@xilinx.com, peter.maydell@linaro.org,
	sstabellini@kernel.org, edgar.iglesias@xilinx.com,
	sai.pavan.boddu@xilinx.com, frasse.iglesias@gmail.com,
	alistair@alistair23.me, richard.henderson@linaro.org,
	frederic.konrad@adacore.com, qemu-arm@nongnu.org,
	philmd@redhat.com, luc.michel@greensocs.com
Subject: [PATCH v1 3/5] dma/xlnx-zdma: Clear DMA_DONE when halting
Date: Thu,  2 Apr 2020 15:47:19 +0200	[thread overview]
Message-ID: <20200402134721.27863-4-edgar.iglesias@gmail.com> (raw)
In-Reply-To: <20200402134721.27863-1-edgar.iglesias@gmail.com>

From: "Edgar E. Iglesias" <edgar.iglesias@xilinx.com>

Clear DMA_DONE when halting the DMA channel.

Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
---
 hw/dma/xlnx-zdma.c | 1 +
 1 file changed, 1 insertion(+)

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;
     }
-- 
2.20.1



  parent reply	other threads:[~2020-04-02 13:50 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-02 13:47 [PATCH v1 0/5] dma/xlnx-zdma: Bug fixes Edgar E. Iglesias
2020-04-02 13:47 ` [PATCH v1 1/5] dma/xlnx-zdma: Remove comment Edgar E. Iglesias
2020-04-02 16:57   ` Alistair Francis
2020-04-03  6:48   ` Francisco Iglesias
2020-04-02 13:47 ` [PATCH v1 2/5] dma/xlnx-zdma: Populate DBG0.CMN_BUF_FREE Edgar E. Iglesias
2020-04-02 17:13   ` Alistair Francis
2020-04-03  6:48   ` Francisco Iglesias
2020-04-02 13:47 ` Edgar E. Iglesias [this message]
2020-04-02 17:15   ` [PATCH v1 3/5] dma/xlnx-zdma: Clear DMA_DONE when halting Alistair Francis
2020-04-03  6:49   ` Francisco Iglesias
2020-04-02 13:47 ` [PATCH v1 4/5] dma/xlnx-zdma: Advance the descriptor address when stopping Edgar E. Iglesias
2020-04-02 17:16   ` Alistair Francis
2020-04-03  6:49   ` Francisco Iglesias
2020-04-02 13:47 ` [PATCH v1 5/5] dma/xlnx-zdma: Reorg to fix CUR_DSCR Edgar E. Iglesias
2020-04-02 22:47   ` Alistair Francis
2020-04-03  6:50   ` Francisco Iglesias
2020-04-03 18:39   ` Peter Maydell
2020-04-03 18:53 ` [PATCH v1 0/5] dma/xlnx-zdma: Bug fixes Peter Maydell
2020-04-04 12:29   ` Edgar E. Iglesias

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200402134721.27863-4-edgar.iglesias@gmail.com \
    --to=edgar.iglesias@gmail.com \
    --cc=alistair@alistair23.me \
    --cc=edgar.iglesias@xilinx.com \
    --cc=figlesia@xilinx.com \
    --cc=frasse.iglesias@gmail.com \
    --cc=frederic.konrad@adacore.com \
    --cc=luc.michel@greensocs.com \
    --cc=peter.maydell@linaro.org \
    --cc=philmd@redhat.com \
    --cc=qemu-arm@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=richard.henderson@linaro.org \
    --cc=sai.pavan.boddu@xilinx.com \
    --cc=sstabellini@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.