diff options
Diffstat (limited to 'drivers/scsi/tmscsim.c')
-rw-r--r-- | drivers/scsi/tmscsim.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/scsi/tmscsim.c b/drivers/scsi/tmscsim.c index 5db1520f8ba9..5c72ca31a47a 100644 --- a/drivers/scsi/tmscsim.c +++ b/drivers/scsi/tmscsim.c | |||
@@ -567,12 +567,12 @@ dc390_StartSCSI( struct dc390_acb* pACB, struct dc390_dcb* pDCB, struct dc390_sr | |||
567 | pDCB->TagMask |= 1 << tag[1]; | 567 | pDCB->TagMask |= 1 << tag[1]; |
568 | pSRB->TagNumber = tag[1]; | 568 | pSRB->TagNumber = tag[1]; |
569 | DC390_write8(ScsiFifo, tag[1]); | 569 | DC390_write8(ScsiFifo, tag[1]); |
570 | DEBUG1(printk(KERN_INFO "DC390: Select w/DisCn for Cmd %li (SRB %p), block tag %02x\n", scmd->pid, pSRB, tag[1])); | 570 | DEBUG1(printk(KERN_INFO "DC390: Select w/DisCn for Cmd %li (SRB %p), block tag %02x\n", scmd->serial_number, pSRB, tag[1])); |
571 | cmd = SEL_W_ATN3; | 571 | cmd = SEL_W_ATN3; |
572 | } else { | 572 | } else { |
573 | /* No TagQ */ | 573 | /* No TagQ */ |
574 | //no_tag: | 574 | //no_tag: |
575 | DEBUG1(printk(KERN_INFO "DC390: Select w%s/DisCn for Cmd %li (SRB %p), No TagQ\n", disc_allowed ? "" : "o", scmd->pid, pSRB)); | 575 | DEBUG1(printk(KERN_INFO "DC390: Select w%s/DisCn for Cmd %li (SRB %p), No TagQ\n", disc_allowed ? "" : "o", scmd->serial_number, pSRB)); |
576 | } | 576 | } |
577 | 577 | ||
578 | pSRB->SRBState = SRB_START_; | 578 | pSRB->SRBState = SRB_START_; |
@@ -623,7 +623,7 @@ dc390_StartSCSI( struct dc390_acb* pACB, struct dc390_dcb* pDCB, struct dc390_sr | |||
623 | { | 623 | { |
624 | dc390_freetag (pDCB, pSRB); | 624 | dc390_freetag (pDCB, pSRB); |
625 | DEBUG0(printk ("DC390: Interrupt during Start SCSI (pid %li, target %02i-%02i)\n", | 625 | DEBUG0(printk ("DC390: Interrupt during Start SCSI (pid %li, target %02i-%02i)\n", |
626 | scmd->pid, scmd->device->id, scmd->device->lun)); | 626 | scmd->serial_number, scmd->device->id, scmd->device->lun)); |
627 | pSRB->SRBState = SRB_READY; | 627 | pSRB->SRBState = SRB_READY; |
628 | //DC390_write8 (ScsiCmd, CLEAR_FIFO_CMD); | 628 | //DC390_write8 (ScsiCmd, CLEAR_FIFO_CMD); |
629 | pACB->SelLost++; | 629 | pACB->SelLost++; |
@@ -1708,7 +1708,7 @@ dc390_SRBdone( struct dc390_acb* pACB, struct dc390_dcb* pDCB, struct dc390_srb* | |||
1708 | status = pSRB->TargetStatus; | 1708 | status = pSRB->TargetStatus; |
1709 | 1709 | ||
1710 | DEBUG0(printk (" SRBdone (%02x,%08x), SRB %p, pid %li\n", status, pcmd->result,\ | 1710 | DEBUG0(printk (" SRBdone (%02x,%08x), SRB %p, pid %li\n", status, pcmd->result,\ |
1711 | pSRB, pcmd->pid)); | 1711 | pSRB, pcmd->serial_number)); |
1712 | if(pSRB->SRBFlag & AUTO_REQSENSE) | 1712 | if(pSRB->SRBFlag & AUTO_REQSENSE) |
1713 | { /* Last command was a Request Sense */ | 1713 | { /* Last command was a Request Sense */ |
1714 | pSRB->SRBFlag &= ~AUTO_REQSENSE; | 1714 | pSRB->SRBFlag &= ~AUTO_REQSENSE; |
@@ -1729,7 +1729,7 @@ dc390_SRBdone( struct dc390_acb* pACB, struct dc390_dcb* pDCB, struct dc390_srb* | |||
1729 | } else { | 1729 | } else { |
1730 | SET_RES_DRV(pcmd->result, DRIVER_SENSE); | 1730 | SET_RES_DRV(pcmd->result, DRIVER_SENSE); |
1731 | //pSRB->ScsiCmdLen = (u8) (pSRB->Segment1[0] >> 8); | 1731 | //pSRB->ScsiCmdLen = (u8) (pSRB->Segment1[0] >> 8); |
1732 | DEBUG0 (printk ("DC390: RETRY pid %li (%02x), target %02i-%02i\n", pcmd->pid, pcmd->cmnd[0], pcmd->device->id, pcmd->device->lun)); | 1732 | DEBUG0 (printk ("DC390: RETRY pid %li (%02x), target %02i-%02i\n", pcmd->serial_number, pcmd->cmnd[0], pcmd->device->id, pcmd->device->lun)); |
1733 | pSRB->TotalXferredLen = 0; | 1733 | pSRB->TotalXferredLen = 0; |
1734 | SET_RES_DID(pcmd->result, DID_SOFT_ERROR); | 1734 | SET_RES_DID(pcmd->result, DID_SOFT_ERROR); |
1735 | } | 1735 | } |
@@ -1749,7 +1749,7 @@ dc390_SRBdone( struct dc390_acb* pACB, struct dc390_dcb* pDCB, struct dc390_srb* | |||
1749 | else if (status == SAM_STAT_TASK_SET_FULL) | 1749 | else if (status == SAM_STAT_TASK_SET_FULL) |
1750 | { | 1750 | { |
1751 | scsi_track_queue_full(pcmd->device, pDCB->GoingSRBCnt - 1); | 1751 | scsi_track_queue_full(pcmd->device, pDCB->GoingSRBCnt - 1); |
1752 | DEBUG0 (printk ("DC390: RETRY pid %li (%02x), target %02i-%02i\n", pcmd->pid, pcmd->cmnd[0], pcmd->device->id, pcmd->device->lun)); | 1752 | DEBUG0 (printk ("DC390: RETRY pid %li (%02x), target %02i-%02i\n", pcmd->serial_number, pcmd->cmnd[0], pcmd->device->id, pcmd->device->lun)); |
1753 | pSRB->TotalXferredLen = 0; | 1753 | pSRB->TotalXferredLen = 0; |
1754 | SET_RES_DID(pcmd->result, DID_SOFT_ERROR); | 1754 | SET_RES_DID(pcmd->result, DID_SOFT_ERROR); |
1755 | } | 1755 | } |
@@ -1803,7 +1803,7 @@ cmd_done: | |||
1803 | /* Add to free list */ | 1803 | /* Add to free list */ |
1804 | dc390_Free_insert (pACB, pSRB); | 1804 | dc390_Free_insert (pACB, pSRB); |
1805 | 1805 | ||
1806 | DEBUG0(printk (KERN_DEBUG "DC390: SRBdone: done pid %li\n", pcmd->pid)); | 1806 | DEBUG0(printk (KERN_DEBUG "DC390: SRBdone: done pid %li\n", pcmd->serial_number)); |
1807 | pcmd->scsi_done (pcmd); | 1807 | pcmd->scsi_done (pcmd); |
1808 | 1808 | ||
1809 | return; | 1809 | return; |
@@ -1998,7 +1998,7 @@ static int DC390_abort(struct scsi_cmnd *cmd) | |||
1998 | struct dc390_dcb *pDCB = (struct dc390_dcb*) cmd->device->hostdata; | 1998 | struct dc390_dcb *pDCB = (struct dc390_dcb*) cmd->device->hostdata; |
1999 | 1999 | ||
2000 | scmd_printk(KERN_WARNING, cmd, | 2000 | scmd_printk(KERN_WARNING, cmd, |
2001 | "DC390: Abort command (pid %li)\n", cmd->pid); | 2001 | "DC390: Abort command (pid %li)\n", cmd->serial_number); |
2002 | 2002 | ||
2003 | /* abort() is too stupid for already sent commands at the moment. | 2003 | /* abort() is too stupid for already sent commands at the moment. |
2004 | * If it's called we are in trouble anyway, so let's dump some info | 2004 | * If it's called we are in trouble anyway, so let's dump some info |
@@ -2006,7 +2006,7 @@ static int DC390_abort(struct scsi_cmnd *cmd) | |||
2006 | dc390_dumpinfo(pACB, pDCB, NULL); | 2006 | dc390_dumpinfo(pACB, pDCB, NULL); |
2007 | 2007 | ||
2008 | pDCB->DCBFlag |= ABORT_DEV_; | 2008 | pDCB->DCBFlag |= ABORT_DEV_; |
2009 | printk(KERN_INFO "DC390: Aborted pid %li\n", cmd->pid); | 2009 | printk(KERN_INFO "DC390: Aborted pid %li\n", cmd->serial_number); |
2010 | 2010 | ||
2011 | return FAILED; | 2011 | return FAILED; |
2012 | } | 2012 | } |