PATCH: Fix seagate for new scsi

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Fri Feb 14 2003 - 16:05:23 EST


diff -u --new-file --recursive --exclude-from /usr/src/exclude linux-2.5.60-ref/drivers/scsi/seagate.c linux-2.5.60-ac1/drivers/scsi/seagate.c
--- linux-2.5.60-ref/drivers/scsi/seagate.c 2003-02-14 21:21:36.000000000 +0000
+++ linux-2.5.60-ac1/drivers/scsi/seagate.c 2003-02-14 20:26:43.000000000 +0000
@@ -683,8 +683,8 @@
 
         DANY ("seagate: que_command");
         done_fn = done;
- current_target = SCpnt->target;
- current_lun = SCpnt->lun;
+ current_target = SCpnt->device->id;
+ current_lun = SCpnt->device->lun;
         current_cmnd = SCpnt->cmnd;
         current_data = (unsigned char *) SCpnt->request_buffer;
         current_bufflen = SCpnt->request_bufflen;
@@ -713,7 +713,7 @@
 #endif /* LINKED */
                         reconnect = CAN_RECONNECT;
 
- result = internal_command(SCint->target, SCint->lun, SCint->cmnd,
+ result = internal_command(SCint->device->id, SCint->device->lun, SCint->cmnd,
                                       SCint->request_buffer, SCint->request_bufflen, reconnect);
                 if (msg_byte(result) == DISCONNECT)
                         break;
@@ -729,7 +729,7 @@
 
 static int seagate_st0x_command(Scsi_Cmnd * SCpnt)
 {
- return internal_command (SCpnt->target, SCpnt->lun, SCpnt->cmnd,
+ return internal_command (SCpnt->device->id, SCpnt->device->lun, SCpnt->cmnd,
                                  SCpnt->request_buffer, SCpnt->request_bufflen,
                                  (int) NO_RECONNECT);
 }
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Feb 15 2003 - 22:00:57 EST