[PATCH 08/10] scsi:ncr710: Simplify disconnect handling

Soumyajyotii Ssarkar posted 10 patches 1 month, 2 weeks ago
Maintainers: Richard Henderson <richard.henderson@linaro.org>, Helge Deller <deller@gmx.de>, Paolo Bonzini <pbonzini@redhat.com>, Fam Zheng <fam@euphon.net>
[PATCH 08/10] scsi:ncr710: Simplify disconnect handling
Posted by Soumyajyotii Ssarkar 1 month, 2 weeks ago
Simplify disconnect instruction by unconditionally clearing waiting
statements when command completes

Signed-off-by: Soumyajyotii Ssarkar<soumyajyotisarkar23@gmail.com>
---
 hw/scsi/ncr53c710.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/hw/scsi/ncr53c710.c b/hw/scsi/ncr53c710.c
index 277aa2c3d3..dd453991e0 100644
--- a/hw/scsi/ncr53c710.c
+++ b/hw/scsi/ncr53c710.c
@@ -1469,9 +1469,7 @@ again:
                 if (s->command_complete != NCR710_CMD_PENDING) {
                     s->scntl1 &= ~NCR710_SCNTL1_CON;
                     s->istat &= ~NCR710_ISTAT_CON;
-                    if (s->waiting == NCR710_WAIT_RESELECT) {
-                        s->waiting = NCR710_WAIT_NONE;
-                    }
+                    s->waiting = NCR710_WAIT_NONE;
                 } else {
                     if (s->current) {
                         s->current->resume_offset = s->dsp;
-- 
2.49.0
Re: [PATCH 08/10] scsi:ncr710: Simplify disconnect handling
Posted by Helge Deller 1 month, 2 weeks ago
On 12/21/25 15:23, Soumyajyotii Ssarkar wrote:
> Simplify disconnect instruction by unconditionally clearing waiting
> statements when command completes
> 
> Signed-off-by: Soumyajyotii Ssarkar<soumyajyotisarkar23@gmail.com>

Tested-by: Helge Deller <deller@gmx.de>