diff options
Diffstat (limited to 'drivers/scsi/megaraid')
-rw-r--r-- | drivers/scsi/megaraid/megaraid_mbox.c | 16 | ||||
-rw-r--r-- | drivers/scsi/megaraid/megaraid_sas.c | 36 |
2 files changed, 26 insertions, 26 deletions
diff --git a/drivers/scsi/megaraid/megaraid_mbox.c b/drivers/scsi/megaraid/megaraid_mbox.c index cd982c877da0..266b3910846b 100644 --- a/drivers/scsi/megaraid/megaraid_mbox.c +++ b/drivers/scsi/megaraid/megaraid_mbox.c | |||
@@ -330,6 +330,21 @@ static struct device_attribute *megaraid_sdev_attrs[] = { | |||
330 | NULL, | 330 | NULL, |
331 | }; | 331 | }; |
332 | 332 | ||
333 | /** | ||
334 | * megaraid_change_queue_depth - Change the device's queue depth | ||
335 | * @sdev: scsi device struct | ||
336 | * @qdepth: depth to set | ||
337 | * | ||
338 | * Return value: | ||
339 | * actual depth set | ||
340 | **/ | ||
341 | static int megaraid_change_queue_depth(struct scsi_device *sdev, int qdepth) | ||
342 | { | ||
343 | if (qdepth > MBOX_MAX_SCSI_CMDS) | ||
344 | qdepth = MBOX_MAX_SCSI_CMDS; | ||
345 | scsi_adjust_queue_depth(sdev, 0, qdepth); | ||
346 | return sdev->queue_depth; | ||
347 | } | ||
333 | 348 | ||
334 | /* | 349 | /* |
335 | * Scsi host template for megaraid unified driver | 350 | * Scsi host template for megaraid unified driver |
@@ -343,6 +358,7 @@ static struct scsi_host_template megaraid_template_g = { | |||
343 | .eh_device_reset_handler = megaraid_reset_handler, | 358 | .eh_device_reset_handler = megaraid_reset_handler, |
344 | .eh_bus_reset_handler = megaraid_reset_handler, | 359 | .eh_bus_reset_handler = megaraid_reset_handler, |
345 | .eh_host_reset_handler = megaraid_reset_handler, | 360 | .eh_host_reset_handler = megaraid_reset_handler, |
361 | .change_queue_depth = megaraid_change_queue_depth, | ||
346 | .use_clustering = ENABLE_CLUSTERING, | 362 | .use_clustering = ENABLE_CLUSTERING, |
347 | .sdev_attrs = megaraid_sdev_attrs, | 363 | .sdev_attrs = megaraid_sdev_attrs, |
348 | .shost_attrs = megaraid_shost_attrs, | 364 | .shost_attrs = megaraid_shost_attrs, |
diff --git a/drivers/scsi/megaraid/megaraid_sas.c b/drivers/scsi/megaraid/megaraid_sas.c index a8c9627a15c4..4cab5b534b25 100644 --- a/drivers/scsi/megaraid/megaraid_sas.c +++ b/drivers/scsi/megaraid/megaraid_sas.c | |||
@@ -53,31 +53,15 @@ MODULE_DESCRIPTION("LSI Logic MegaRAID SAS Driver"); | |||
53 | */ | 53 | */ |
54 | static struct pci_device_id megasas_pci_table[] = { | 54 | static struct pci_device_id megasas_pci_table[] = { |
55 | 55 | ||
56 | { | 56 | {PCI_DEVICE(PCI_VENDOR_ID_LSI_LOGIC, PCI_DEVICE_ID_LSI_SAS1064R)}, |
57 | PCI_VENDOR_ID_LSI_LOGIC, | 57 | /* xscale IOP */ |
58 | PCI_DEVICE_ID_LSI_SAS1064R, /* xscale IOP */ | 58 | {PCI_DEVICE(PCI_VENDOR_ID_LSI_LOGIC, PCI_DEVICE_ID_LSI_SAS1078R)}, |
59 | PCI_ANY_ID, | 59 | /* ppc IOP */ |
60 | PCI_ANY_ID, | 60 | {PCI_DEVICE(PCI_VENDOR_ID_LSI_LOGIC, PCI_DEVICE_ID_LSI_VERDE_ZCR)}, |
61 | }, | 61 | /* xscale IOP, vega */ |
62 | { | 62 | {PCI_DEVICE(PCI_VENDOR_ID_DELL, PCI_DEVICE_ID_DELL_PERC5)}, |
63 | PCI_VENDOR_ID_LSI_LOGIC, | 63 | /* xscale IOP */ |
64 | PCI_DEVICE_ID_LSI_SAS1078R, /* ppc IOP */ | 64 | {} |
65 | PCI_ANY_ID, | ||
66 | PCI_ANY_ID, | ||
67 | }, | ||
68 | { | ||
69 | PCI_VENDOR_ID_LSI_LOGIC, | ||
70 | PCI_DEVICE_ID_LSI_VERDE_ZCR, /* xscale IOP, vega */ | ||
71 | PCI_ANY_ID, | ||
72 | PCI_ANY_ID, | ||
73 | }, | ||
74 | { | ||
75 | PCI_VENDOR_ID_DELL, | ||
76 | PCI_DEVICE_ID_DELL_PERC5, /* xscale IOP */ | ||
77 | PCI_ANY_ID, | ||
78 | PCI_ANY_ID, | ||
79 | }, | ||
80 | {0} /* Terminating entry */ | ||
81 | }; | 65 | }; |
82 | 66 | ||
83 | MODULE_DEVICE_TABLE(pci, megasas_pci_table); | 67 | MODULE_DEVICE_TABLE(pci, megasas_pci_table); |
@@ -2854,7 +2838,7 @@ static int __init megasas_init(void) | |||
2854 | /* | 2838 | /* |
2855 | * Register ourselves as PCI hotplug module | 2839 | * Register ourselves as PCI hotplug module |
2856 | */ | 2840 | */ |
2857 | rval = pci_module_init(&megasas_pci_driver); | 2841 | rval = pci_register_driver(&megasas_pci_driver); |
2858 | 2842 | ||
2859 | if (rval) { | 2843 | if (rval) { |
2860 | printk(KERN_DEBUG "megasas: PCI hotplug regisration failed \n"); | 2844 | printk(KERN_DEBUG "megasas: PCI hotplug regisration failed \n"); |