| Submitter | Alexander Graf |
|---|---|
| Date | March 8, 2013, 8:07 p.m. |
| Message ID | <1362773228-1747-62-git-send-email-agraf@suse.de> |
| Download | mbox | patch |
| Permalink | /patch/226232/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/hw/mac_dbdma.c b/hw/mac_dbdma.c index b894ab2..73d74c2 100644 --- a/hw/mac_dbdma.c +++ b/hw/mac_dbdma.c @@ -688,6 +688,10 @@ dbdma_control_write(DBDMA_channel *ch) if ((ch->regs[DBDMA_STATUS] & RUN) && !(status & RUN)) { /* RUN is cleared */ status &= ~(ACTIVE|DEAD); + if ((status & FLUSH) && ch->flush) { + ch->flush(&ch->io); + status &= ~FLUSH; + } } DBDMA_DPRINTF(" status 0x%08x\n", status);