aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/scsi/aha152x.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/scsi/aha152x.c b/drivers/scsi/aha152x.c
index c841f11f4e32..dc7d84bae96b 100644
--- a/drivers/scsi/aha152x.c
+++ b/drivers/scsi/aha152x.c
@@ -986,7 +986,7 @@ static int aha152x_internal_queue(Scsi_Cmnd *SCpnt, struct completion *complete,
986 SCpnt->scsi_done = done; 986 SCpnt->scsi_done = done;
987 SCpnt->resid = SCpnt->request_bufflen; 987 SCpnt->resid = SCpnt->request_bufflen;
988 SCpnt->SCp.phase = not_issued | phase; 988 SCpnt->SCp.phase = not_issued | phase;
989 SCpnt->SCp.Status = CHECK_CONDITION; 989 SCpnt->SCp.Status = 0x1; /* Ilegal status by SCSI standard */
990 SCpnt->SCp.Message = 0; 990 SCpnt->SCp.Message = 0;
991 SCpnt->SCp.have_data_in = 0; 991 SCpnt->SCp.have_data_in = 0;
992 SCpnt->SCp.sent_command = 0; 992 SCpnt->SCp.sent_command = 0;
@@ -1574,12 +1574,12 @@ static void busfree_run(struct Scsi_Host *shpnt)
1574 cmd->use_sg = sc->use_sg; 1574 cmd->use_sg = sc->use_sg;
1575 cmd->cmd_len = sc->cmd_len; 1575 cmd->cmd_len = sc->cmd_len;
1576 1576
1577 cmd->SCp.Status = 0x02; 1577 cmd->SCp.Status = SAM_STAT_CHECK_CONDITION;
1578 1578
1579 HOSTDATA(shpnt)->commands--; 1579 HOSTDATA(shpnt)->commands--;
1580 if (!HOSTDATA(shpnt)->commands) 1580 if (!HOSTDATA(shpnt)->commands)
1581 SETPORT(PORTA, 0); /* turn led off */ 1581 SETPORT(PORTA, 0); /* turn led off */
1582 } else if(DONE_SC->SCp.Status==0x02) { 1582 } else if(DONE_SC->SCp.Status==SAM_STAT_CHECK_CONDITION) {
1583#if defined(AHA152X_STAT) 1583#if defined(AHA152X_STAT)
1584 HOSTDATA(shpnt)->busfree_with_check_condition++; 1584 HOSTDATA(shpnt)->busfree_with_check_condition++;
1585#endif 1585#endif
@@ -1587,7 +1587,7 @@ static void busfree_run(struct Scsi_Host *shpnt)
1587 DPRINTK(debug_eh, ERR_LEAD "CHECK CONDITION found\n", CMDINFO(DONE_SC)); 1587 DPRINTK(debug_eh, ERR_LEAD "CHECK CONDITION found\n", CMDINFO(DONE_SC));
1588#endif 1588#endif
1589 1589
1590 if(!(DONE_SC->SCp.Status & not_issued)) { 1590 if(!(DONE_SC->SCp.phase & not_issued)) {
1591 Scsi_Cmnd *ptr = DONE_SC; 1591 Scsi_Cmnd *ptr = DONE_SC;
1592 DONE_SC=NULL; 1592 DONE_SC=NULL;
1593#if 0 1593#if 0