diff options
| author | Scott Long <scottl@FreeBSD.org> | 2004-06-12 05:19:17 +0000 |
|---|---|---|
| committer | Scott Long <scottl@FreeBSD.org> | 2004-06-12 05:19:17 +0000 |
| commit | fec4efc10bed2f66b962d5c66d08fd20bc745928 (patch) | |
| tree | 211e672b70afa51164ff59d7aa42eee03169df85 /sys/dev/esp/ncr53c9x.c | |
| parent | 9772caa388079bac140e40960807a5b463d1ef5e (diff) | |
Notes
Diffstat (limited to 'sys/dev/esp/ncr53c9x.c')
| -rw-r--r-- | sys/dev/esp/ncr53c9x.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/esp/ncr53c9x.c b/sys/dev/esp/ncr53c9x.c index 01d81a4a5e98b..7f42c7cf3c5b0 100644 --- a/sys/dev/esp/ncr53c9x.c +++ b/sys/dev/esp/ncr53c9x.c @@ -944,7 +944,7 @@ ncr53c9x_action(struct cam_sim *sim, union ccb *ccb) ecb->ccb = ccb; ecb->timeout = ccb->ccb_h.timeout; - if (ccb->ccb_h.func_code == XPT_RESET_BUS) { + if (ccb->ccb_h.func_code == XPT_RESET_DEV) { ecb->flags |= ECB_RESET; ecb->clen = 0; ecb->dleft = 0; @@ -1219,6 +1219,7 @@ ncr53c9x_done(struct ncr53c9x_softc *sc, struct ncr53c9x_ecb *ecb) if ((ecb->flags & ECB_ABORT) != 0) { ccb->ccb_h.status = CAM_CMD_TIMEOUT; } else if ((ecb->flags & ECB_SENSE) != 0) { + ccb->ccb_h.status = CAM_AUTOSNS_VALID; } else if (ecb->stat == SCSI_STATUS_CHECK_COND) { if ((ecb->flags & ECB_SENSE) != 0) ccb->ccb_h.status = CAM_AUTOSENSE_FAIL; |
