hw/dma: sifive_pdma: Set done bit upon completion
PATCH 1/1 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 <[email protected]>
Reviewed-by Frank Chang <[email protected]>
--- hw/dma/sifive_pdma.c | 1 + 1 file changed, 1 insertion(+)
hw/dma/sifive_pdma.c +1 -0
@@ -153,6 +153,7 @@ done: error: s->chan[ch].state =DMA_CHAN_STATE_ERROR ; s->chan[ch].control |=CONTROL_ERR ; + s->chan[ch].control |=CONTROL_DONE ; }static inline void sifive_pdma_update_irq (SiFivePDMAState *s,int ch)
Signature · 1 line
2.48.1
Quoted 7 lines · Jay Chang
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 <[email protected]>Reviewed-by Frank Chang <[email protected]>
Reviewed-by Alistair Francis <[email protected]>
Alistair
Quoted 20 lines
--- hw/dma/sifive_pdma.c | 1 + 1 file changed, 1 insertion(+)hw/dma/sifive_pdma.c +1
-1@@ -153,6 +153,7 @@ done: error: s->chan[ch].state =DMA_CHAN_STATE_ERROR ; s->chan[ch].control |=CONTROL_ERR ; + s->chan[ch].control |=CONTROL_DONE ; }static inline void sifive_pdma_update_irq (SiFivePDMAState *s,int ch) --2.48.1
Alistair Francis
AppliedQuoted 7 lines · Jay Chang
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 <[email protected]>Reviewed-by Frank Chang <[email protected]>
Thanks!
Applied to riscv-to-apply.next
Alistair
Quoted 20 lines
--- hw/dma/sifive_pdma.c | 1 + 1 file changed, 1 insertion(+)hw/dma/sifive_pdma.c +1
-1@@ -153,6 +153,7 @@ done: error: s->chan[ch].state =DMA_CHAN_STATE_ERROR ; s->chan[ch].control |=CONTROL_ERR ; + s->chan[ch].control |=CONTROL_DONE ; }static inline void sifive_pdma_update_irq (SiFivePDMAState *s,int ch) --2.48.1