Bug fix: allow reset device command to complete.

This commit is contained in:
Luoqi Chen 1999-10-28 05:28:00 +00:00
parent 6061100fb8
commit 4b80d3dd0b

View file

@ -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;