From 04899d65283ce8b5292948782f32adab22b1e643 Mon Sep 17 00:00:00 2001 From: Maxim Poliakovski Date: Sat, 30 Nov 2024 12:09:11 +0100 Subject: [PATCH] dbdma: prevent STOP from updating xferStatus. --- devices/common/dbdma.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/devices/common/dbdma.cpp b/devices/common/dbdma.cpp index 67afa42..79932ab 100644 --- a/devices/common/dbdma.cpp +++ b/devices/common/dbdma.cpp @@ -189,10 +189,11 @@ void DMAChannel::finish_cmd() { this->ch_stat |= CH_STAT_BT; } } + + if (res.is_writable) + WRITE_WORD_LE_A(&cmd_desc[14], this->ch_stat | CH_STAT_ACTIVE); } - if (res.is_writable) - WRITE_WORD_LE_A(&cmd_desc[14], this->ch_stat | CH_STAT_ACTIVE); this->ch_stat &= ~(CH_STAT_FLUSH | CH_STAT_BT); // all INPUT and OUTPUT commands including LOAD_QUAD and STORE_QUAD update cmd.resCount