mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
xilinx_axidma: Fix rx/tx halted bit.
If there is no DMA buffer descriptor, the DMA halts, not idles. Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com> Acked-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
This commit is contained in:
parent
e1500e35c2
commit
210914e299
1 changed files with 2 additions and 2 deletions
|
@ -276,7 +276,7 @@ static void stream_process_mem2s(struct Stream *s,
|
|||
stream_desc_load(s, s->regs[R_CURDESC]);
|
||||
|
||||
if (s->desc.status & SDESC_STATUS_COMPLETE) {
|
||||
s->regs[R_DMASR] |= DMASR_IDLE;
|
||||
s->regs[R_DMASR] |= DMASR_HALTED;
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -331,7 +331,7 @@ static void stream_process_s2mem(struct Stream *s,
|
|||
stream_desc_load(s, s->regs[R_CURDESC]);
|
||||
|
||||
if (s->desc.status & SDESC_STATUS_COMPLETE) {
|
||||
s->regs[R_DMASR] |= DMASR_IDLE;
|
||||
s->regs[R_DMASR] |= DMASR_HALTED;
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue