aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_init.c')
-rw-r--r--drivers/scsi/qla2xxx/qla_init.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c
index b1b20f43d722..7e18b9c12654 100644
--- a/drivers/scsi/qla2xxx/qla_init.c
+++ b/drivers/scsi/qla2xxx/qla_init.c
@@ -194,7 +194,6 @@ qla2100_pci_config(scsi_qla_host_t *ha)
194 mwi = 0; 194 mwi = 0;
195 if (pci_set_mwi(ha->pdev)) 195 if (pci_set_mwi(ha->pdev))
196 mwi = PCI_COMMAND_INVALIDATE; 196 mwi = PCI_COMMAND_INVALIDATE;
197 pci_read_config_word(ha->pdev, PCI_REVISION_ID, &ha->revision);
198 197
199 pci_read_config_word(ha->pdev, PCI_COMMAND, &w); 198 pci_read_config_word(ha->pdev, PCI_COMMAND, &w);
200 w |= mwi | (PCI_COMMAND_PARITY | PCI_COMMAND_SERR); 199 w |= mwi | (PCI_COMMAND_PARITY | PCI_COMMAND_SERR);
@@ -232,7 +231,6 @@ qla2300_pci_config(scsi_qla_host_t *ha)
232 mwi = 0; 231 mwi = 0;
233 if (pci_set_mwi(ha->pdev)) 232 if (pci_set_mwi(ha->pdev))
234 mwi = PCI_COMMAND_INVALIDATE; 233 mwi = PCI_COMMAND_INVALIDATE;
235 pci_read_config_word(ha->pdev, PCI_REVISION_ID, &ha->revision);
236 234
237 pci_read_config_word(ha->pdev, PCI_COMMAND, &w); 235 pci_read_config_word(ha->pdev, PCI_COMMAND, &w);
238 w |= mwi | (PCI_COMMAND_PARITY | PCI_COMMAND_SERR); 236 w |= mwi | (PCI_COMMAND_PARITY | PCI_COMMAND_SERR);
@@ -320,7 +318,6 @@ qla24xx_pci_config(scsi_qla_host_t *ha)
320 mwi = 0; 318 mwi = 0;
321 if (pci_set_mwi(ha->pdev)) 319 if (pci_set_mwi(ha->pdev))
322 mwi = PCI_COMMAND_INVALIDATE; 320 mwi = PCI_COMMAND_INVALIDATE;
323 pci_read_config_word(ha->pdev, PCI_REVISION_ID, &ha->revision);
324 321
325 pci_read_config_word(ha->pdev, PCI_COMMAND, &w); 322 pci_read_config_word(ha->pdev, PCI_COMMAND, &w);
326 w |= mwi | (PCI_COMMAND_PARITY | PCI_COMMAND_SERR); 323 w |= mwi | (PCI_COMMAND_PARITY | PCI_COMMAND_SERR);
@@ -1675,14 +1672,6 @@ qla2x00_nvram_config(scsi_qla_host_t *ha)
1675} 1672}
1676 1673
1677static void 1674static void
1678qla2x00_rport_add(void *data)
1679{
1680 fc_port_t *fcport = data;
1681
1682 qla2x00_reg_remote_port(fcport->ha, fcport);
1683}
1684
1685static void
1686qla2x00_rport_del(void *data) 1675qla2x00_rport_del(void *data)
1687{ 1676{
1688 fc_port_t *fcport = data; 1677 fc_port_t *fcport = data;
@@ -1724,8 +1713,6 @@ qla2x00_alloc_fcport(scsi_qla_host_t *ha, gfp_t flags)
1724 fcport->flags = FCF_RLC_SUPPORT; 1713 fcport->flags = FCF_RLC_SUPPORT;
1725 fcport->supported_classes = FC_COS_UNSPECIFIED; 1714 fcport->supported_classes = FC_COS_UNSPECIFIED;
1726 spin_lock_init(&fcport->rport_lock); 1715 spin_lock_init(&fcport->rport_lock);
1727 INIT_WORK(&fcport->rport_add_work, qla2x00_rport_add, fcport);
1728 INIT_WORK(&fcport->rport_del_work, qla2x00_rport_del, fcport);
1729 1716
1730 return (fcport); 1717 return (fcport);
1731} 1718}
@@ -2048,10 +2035,6 @@ qla2x00_update_fcport(scsi_qla_host_t *ha, fc_port_t *fcport)
2048 PORT_RETRY_TIME); 2035 PORT_RETRY_TIME);
2049 fcport->flags &= ~FCF_LOGIN_NEEDED; 2036 fcport->flags &= ~FCF_LOGIN_NEEDED;
2050 2037
2051 if (fcport->port_type == FCT_INITIATOR ||
2052 fcport->port_type == FCT_BROADCAST)
2053 fcport->device_type = TYPE_PROCESSOR;
2054
2055 atomic_set(&fcport->state, FCS_ONLINE); 2038 atomic_set(&fcport->state, FCS_ONLINE);
2056 2039
2057 if (ha->flags.init_done) 2040 if (ha->flags.init_done)