]> git.hungrycats.org Git - linux/commitdiff
Merge
authorLinus Torvalds <torvalds@penguin.transmeta.com>
Mon, 25 Nov 2002 11:16:12 +0000 (03:16 -0800)
committerLinus Torvalds <torvalds@penguin.transmeta.com>
Mon, 25 Nov 2002 11:16:12 +0000 (03:16 -0800)
1  2 
drivers/message/fusion/mptscsih.c
drivers/message/fusion/mptscsih.h
drivers/scsi/eata.c
drivers/scsi/ips.c
drivers/scsi/scsi.h

index e55a97bc18409a4601c6d667aad2d121bc771b56,41c8683e390707ac9cee57f0bdd2d39ca3a82f74..57faa74cba29a0e0eacf684544fa967c9a44f9d4
@@@ -3666,17 -3599,26 +3599,26 @@@ mptscsih_bios_param(Disk * disk, kdev_
   *    Called once per device the bus scan. Use it to force the queue_depth
   *    member to 1 if a device does not support Q tags.
   */
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,44)
  int
 -mptscsih_slave_attach(Scsi_Device *device)
 +mptscsih_slave_configure(Scsi_Device *device)
  {
+       struct Scsi_Host        *host = device->host;
        VirtDevice              *pTarget;
-       pTarget = device->hostdata;
-       if (!device->tagged_supported ||
-           !(pTarget->tflags & MPT_TARGET_FLAGS_Q_YES)) {
-               scsi_adjust_queue_depth(device, 0, 1);
-       } else {
-               scsi_adjust_queue_depth(device, MSG_SIMPLE_TAG,
-                                              device->host->can_queue >> 1);
+       MPT_SCSI_HOST           *hd;
+       hd = (MPT_SCSI_HOST *)host->hostdata;
+       if (hd && (hd->Targets != NULL)) {
+               pTarget = hd->Targets[device->id];
+               if (pTarget) {
+                       if (!device->tagged_supported ||
+                           !(pTarget->tflags & MPT_TARGET_FLAGS_Q_YES)) {
+                               scsi_adjust_queue_depth(device, 0, 1);
+                       } else {
+                               scsi_adjust_queue_depth(device, MSG_SIMPLE_TAG, 
+                                                       device->host->can_queue >> 1);
+                       }
+               }
        }
        return 0;
  }
index bf6bf05a5943b25bbf545cb1c2ad31a57b4414d1,379003adff9a1e84bf17c1d50a3f31dc691493b5..885a1a55c0f1ff1eff28b0f78600a313e7bb5aee
@@@ -253,8 -264,35 +256,6 @@@ extern    void             x_scsi_taskmgmt_bh(void *
        .detect                         = x_scsi_detect,        \
        .release                        = x_scsi_release,       \
        .info                           = x_scsi_info,          \
 -      .command                        = NULL,                 \
--      .queuecommand                   = x_scsi_queuecommand,  \
-       .slave_configure                = x_scsi_slave_configure,\
 -      .slave_attach                   = x_scsi_slave_attach,  \
 -      .eh_strategy_handler            = NULL,                 \
 -      .eh_abort_handler               = x_scsi_abort,         \
 -      .eh_device_reset_handler        = x_scsi_dev_reset,     \
 -      .eh_bus_reset_handler           = x_scsi_bus_reset,     \
 -      .eh_host_reset_handler          = x_scsi_host_reset,    \
 -      .bios_param                     = x_scsi_bios_param,    \
 -      .can_queue                      = MPT_SCSI_CAN_QUEUE,   \
 -      .this_id                        = -1,                   \
 -      .sg_tablesize                   = MPT_SCSI_SG_DEPTH,    \
 -      .max_sectors                    = MPT_SCSI_MAX_SECTORS, \
 -      .cmd_per_lun                    = MPT_SCSI_CMD_PER_LUN, \
 -      .unchecked_isa_dma              = 0,                    \
 -      .use_clustering                 = ENABLE_CLUSTERING,    \
 -}
 -
 -#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,1)
 -
 -#define MPT_SCSIHOST {                                                \
 -      PROC_SCSI_DECL                                          \
 -      .name                           = "MPT SCSI Host",      \
 -      .detect                         = x_scsi_detect,        \
 -      .release                        = x_scsi_release,       \
 -      .info                           = x_scsi_info,          \
 -      .command                        = NULL,                 \
 -      .queuecommand                   = x_scsi_queuecommand,  \
 -      .eh_strategy_handler            = NULL,                 \
        .eh_abort_handler               = x_scsi_abort,         \
        .eh_device_reset_handler        = x_scsi_dev_reset,     \
        .eh_bus_reset_handler           = x_scsi_bus_reset,     \
Simple merge
Simple merge
Simple merge