aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx
diff options
context:
space:
mode:
authorChad Dupuis <chad.dupuis@qlogic.com>2011-11-18 12:03:21 -0500
committerJames Bottomley <JBottomley@Parallels.com>2011-12-15 01:55:11 -0500
commitcba1e47f4d641459e05eacaaa50a26d5e3d28818 (patch)
tree17a674b90fb25d3ad7d0512e5805f24c7a535ccd /drivers/scsi/qla2xxx
parent5780790ee6836ad64648c0905fcf15e073aad19b (diff)
[SCSI] qla2xxx: Move initialization of some variables before iospace_config.
Some variables need to be initialized before we config PCI I/O config space or else strange firmware initialization errors may occur. Signed-off-by: Chad Dupuis <chad.dupuis@qlogic.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/qla2xxx')
-rw-r--r--drivers/scsi/qla2xxx/qla_os.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c
index d713bc387790..4ed1e4a96b95 100644
--- a/drivers/scsi/qla2xxx/qla_os.c
+++ b/drivers/scsi/qla2xxx/qla_os.c
@@ -2027,6 +2027,11 @@ qla2x00_probe_one(struct pci_dev *pdev, const struct pci_device_id *id)
2027 pdev->needs_freset = 1; 2027 pdev->needs_freset = 1;
2028 } 2028 }
2029 2029
2030 ha->prev_topology = 0;
2031 ha->init_cb_size = sizeof(init_cb_t);
2032 ha->link_data_rate = PORT_SPEED_UNKNOWN;
2033 ha->optrom_size = OPTROM_SIZE_2300;
2034
2030 /* Assign ISP specific operations. */ 2035 /* Assign ISP specific operations. */
2031 max_id = MAX_TARGETS_2200; 2036 max_id = MAX_TARGETS_2200;
2032 if (IS_QLA2100(ha)) { 2037 if (IS_QLA2100(ha)) {
@@ -2143,11 +2148,6 @@ qla2x00_probe_one(struct pci_dev *pdev, const struct pci_device_id *id)
2143 ql_log_pci(ql_log_info, pdev, 0x001d, 2148 ql_log_pci(ql_log_info, pdev, 0x001d,
2144 "Found an ISP%04X irq %d iobase 0x%p.\n", 2149 "Found an ISP%04X irq %d iobase 0x%p.\n",
2145 pdev->device, pdev->irq, ha->iobase); 2150 pdev->device, pdev->irq, ha->iobase);
2146 ha->prev_topology = 0;
2147 ha->init_cb_size = sizeof(init_cb_t);
2148 ha->link_data_rate = PORT_SPEED_UNKNOWN;
2149 ha->optrom_size = OPTROM_SIZE_2300;
2150
2151 mutex_init(&ha->vport_lock); 2151 mutex_init(&ha->vport_lock);
2152 init_completion(&ha->mbx_cmd_comp); 2152 init_completion(&ha->mbx_cmd_comp);
2153 complete(&ha->mbx_cmd_comp); 2153 complete(&ha->mbx_cmd_comp);