qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH v3 02/10] esp: delay Transfer Information command if


From: Hervé Poussineau
Subject: [Qemu-devel] [PATCH v3 02/10] esp: delay Transfer Information command if dma is not enabled
Date: Mon, 9 Jul 2012 12:02:23 +0200

The same mechanism is already in place for some select commands.

Signed-off-by: Hervé Poussineau <address@hidden>
---
 hw/esp.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/hw/esp.c b/hw/esp.c
index aff8de6..ac91f00 100644
--- a/hw/esp.c
+++ b/hw/esp.c
@@ -435,6 +435,11 @@ static void handle_ti(ESPState *s)
 {
     uint32_t dmalen, minlen;
 
+    if (s->dma && !s->dma_enabled) {
+        s->dma_cb = handle_ti;
+        return;
+    }
+
     dmalen = s->rregs[ESP_TCLO] | (s->rregs[ESP_TCMID] << 8);
     if (dmalen==0) {
       dmalen=0x10000;
-- 
1.7.10.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]