From 4b80d3dd0b21779e41fe5237c67fb2dacfdecf0e Mon Sep 17 00:00:00 2001 From: Luoqi Chen Date: Thu, 28 Oct 1999 05:28:00 +0000 Subject: [PATCH] Bug fix: allow reset device command to complete. --- sys/dev/aic/aic.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sys/dev/aic/aic.c b/sys/dev/aic/aic.c index 3018c95497f..341c7e1c809 100644 --- a/sys/dev/aic/aic.c +++ b/sys/dev/aic/aic.c @@ -1105,7 +1105,7 @@ aic_timeout(void *arg) printf("ccb %p - timed out", ccb); if (aic->nexus && aic->nexus != scb) printf(", nexus %p", aic->nexus->ccb); - printf("\n"); + printf(", phase %x\n", aic_inb(aic, SCSISIGI)); s = splcam(); @@ -1254,6 +1254,10 @@ aic_intr(void *arg) ccb = scb->ccb; ccb->ccb_h.status = CAM_UNEXP_BUSFREE; aic_done(aic, scb); + } else if (scb->flags & SCB_DEVICE_RESET) { + ccb = scb->ccb; + ccb->ccb_h.status = CAM_REQ_CMP; + aic_done(aic, scb); } else if (scb->flags & SCB_SENSE) { /* autosense request */ aic->flags &= ~AIC_BUSFREE_OK;