hw/dma: sifive_pdma: Set done bit upon completion
Ensure that the 'done' bit is set upon transfer completion, even if an error occurs, since all transfers are considered completed regardless of success or failure. Signed-off-by: Jay Chang <jay.chang@sifive.com> Reviewed-by: Frank Chang <frank.chang@sifive.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-ID: <20260304030816.33209-1-jay.chang@sifive.com> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Jay Chang committed
Mar 4, 2026 at 11:08 UTC
9251858a6557b1eb791419d4882b5821ee656bcd
1 file changed
+1
hw/dma/sifive_pdma.c
+1
@@ -153,6 +153,7 @@ done:
153
error:
154
s->chan[ch].state = DMA_CHAN_STATE_ERROR;
155
s->chan[ch].control |= CONTROL_ERR;
156
+ s->chan[ch].control |= CONTROL_DONE;
157
}
158
159
static inline void sifive_pdma_update_irq(SiFivePDMAState *s, int ch)