]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - drivers/scsi/tmscsim.c
scsi: don't set tagging state from scsi_adjust_queue_depth
[mirror_ubuntu-zesty-kernel.git] / drivers / scsi / tmscsim.c
index 6369f9a282f1902d5082e9f70fb75c414aef28b4..844c9a048c00f2159e82254a335a6b445e1124be 100644 (file)
@@ -2185,9 +2185,16 @@ static int dc390_slave_configure(struct scsi_device *sdev)
        struct dc390_dcb *dcb = (struct dc390_dcb *)sdev->hostdata;
 
        acb->scan_devices = 0;
+
+       /*
+        * XXX: Note that while this driver used to called scsi_activate_tcq,
+        * it never actually set a tag type, so emulate the old behavior.
+        */
+       scsi_set_tag_type(sdev, 0);
+
        if (sdev->tagged_supported && (dcb->DevMode & TAG_QUEUEING_)) {
                dcb->SyncMode |= EN_TAG_QUEUEING;
-               scsi_adjust_queue_depth(sdev, 0, acb->TagMaxNum);
+               scsi_adjust_queue_depth(sdev, acb->TagMaxNum);
        }
 
        return 0;