]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - drivers/scsi/aacraid/linit.c
scsi: aacraid: Added 32 and 64 queue depth for arc natives
[mirror_ubuntu-zesty-kernel.git] / drivers / scsi / aacraid / linit.c
index 5a201da932509ef8501be8b23320dadab4146982..5e1a2d67d90c008b21b8e0bebf325782162a6eee 100644 (file)
@@ -466,6 +466,17 @@ static int aac_slave_configure(struct scsi_device *sdev)
                        ++num_lsu;
 
                depth = (host->can_queue - num_one) / num_lsu;
+
+               if (sdev_channel(sdev) != NATIVE_CHANNEL)
+                       goto common_config;
+
+               /*
+                * Check if SATA drive
+                */
+               if (strncmp(sdev->vendor, "ATA", 3) == 0)
+                       depth = 32;
+               else
+                       depth = 64;
        }
 
 common_config: