From 7246e160763306d254772353adb8e0836c3eac5b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Herv=C3=A9=20Poussineau?= <hpoussin@reactos.org> Date: Mon, 9 Jul 2012 12:02:23 +0200 Subject: [PATCH] esp: delay Transfer Information command if dma is not enabled MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The same mechanism is already in place for some select commands. Signed-off-by: Hervé Poussineau <hpoussin@reactos.org> Signed-off-by: Blue Swirl <blauwirbel@gmail.com> --- hw/esp.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hw/esp.c b/hw/esp.c index aff8de6839..ac91f00351 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; -- 2.30.2