aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_os.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_os.c')
-rw-r--r--drivers/scsi/qla2xxx/qla_os.c29
1 files changed, 7 insertions, 22 deletions
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c
index 3eb4cd2cbc7..1cc8febcbad 100644
--- a/drivers/scsi/qla2xxx/qla_os.c
+++ b/drivers/scsi/qla2xxx/qla_os.c
@@ -1377,10 +1377,8 @@ qla2x00_probe_one(struct pci_dev *pdev, const struct pci_device_id *id)
1377 struct Scsi_Host *host; 1377 struct Scsi_Host *host;
1378 scsi_qla_host_t *ha; 1378 scsi_qla_host_t *ha;
1379 unsigned long flags = 0; 1379 unsigned long flags = 0;
1380 unsigned long wait_switch = 0;
1381 char pci_info[20]; 1380 char pci_info[20];
1382 char fw_str[30]; 1381 char fw_str[30];
1383 fc_port_t *fcport;
1384 struct scsi_host_template *sht; 1382 struct scsi_host_template *sht;
1385 1383
1386 if (pci_enable_device(pdev)) 1384 if (pci_enable_device(pdev))
@@ -1631,24 +1629,15 @@ qla2x00_probe_one(struct pci_dev *pdev, const struct pci_device_id *id)
1631 1629
1632 ha->isp_ops.enable_intrs(ha); 1630 ha->isp_ops.enable_intrs(ha);
1633 1631
1634 /* v2.19.5b6 */
1635 /*
1636 * Wait around max loop_reset_delay secs for the devices to come
1637 * on-line. We don't want Linux scanning before we are ready.
1638 *
1639 */
1640 for (wait_switch = jiffies + (ha->loop_reset_delay * HZ);
1641 time_before(jiffies,wait_switch) &&
1642 !(ha->device_flags & (DFLG_NO_CABLE | DFLG_FABRIC_DEVICES))
1643 && (ha->device_flags & SWITCH_FOUND) ;) {
1644
1645 qla2x00_check_fabric_devices(ha);
1646
1647 msleep(10);
1648 }
1649
1650 pci_set_drvdata(pdev, ha); 1632 pci_set_drvdata(pdev, ha);
1633
1634 /* Start link scan. */
1635 set_bit(LOOP_RESYNC_NEEDED, &ha->dpc_flags);
1636 set_bit(LOCAL_LOOP_UPDATE, &ha->dpc_flags);
1637 set_bit(RSCN_UPDATE, &ha->dpc_flags);
1651 ha->flags.init_done = 1; 1638 ha->flags.init_done = 1;
1639 ha->flags.online = 1;
1640
1652 num_hosts++; 1641 num_hosts++;
1653 1642
1654 ret = scsi_add_host(host, &pdev->dev); 1643 ret = scsi_add_host(host, &pdev->dev);
@@ -1669,10 +1658,6 @@ qla2x00_probe_one(struct pci_dev *pdev, const struct pci_device_id *id)
1669 ha->flags.enable_64bit_addressing ? '+': '-', ha->host_no, 1658 ha->flags.enable_64bit_addressing ? '+': '-', ha->host_no,
1670 ha->isp_ops.fw_version_str(ha, fw_str)); 1659 ha->isp_ops.fw_version_str(ha, fw_str));
1671 1660
1672 /* Go with fc_rport registration. */
1673 list_for_each_entry(fcport, &ha->fcports, list)
1674 qla2x00_reg_remote_port(ha, fcport);
1675
1676 return 0; 1661 return 0;
1677 1662
1678probe_failed: 1663probe_failed: