diff options
-rw-r--r-- | drivers/scsi/qla2xxx/qla_dbg.c | 2 | ||||
-rw-r--r-- | drivers/scsi/qla2xxx/qla_init.c | 24 |
2 files changed, 25 insertions, 1 deletions
diff --git a/drivers/scsi/qla2xxx/qla_dbg.c b/drivers/scsi/qla2xxx/qla_dbg.c index 0671f07a0974..907a7acb1639 100644 --- a/drivers/scsi/qla2xxx/qla_dbg.c +++ b/drivers/scsi/qla2xxx/qla_dbg.c | |||
@@ -16,7 +16,7 @@ | |||
16 | * | | | 0x016e-0x0170 | | 16 | * | | | 0x016e-0x0170 | |
17 | * | Mailbox commands | 0x1192 | | | 17 | * | Mailbox commands | 0x1192 | | |
18 | * | | | | | 18 | * | | | | |
19 | * | Device Discovery | 0x2016 | 0x2020-0x2022, | | 19 | * | Device Discovery | 0x2003 | 0x2016 | |
20 | * | | | 0x2011-0x2012, | | 20 | * | | | 0x2011-0x2012, | |
21 | * | | | 0x2099-0x20a4 | | 21 | * | | | 0x2099-0x20a4 | |
22 | * | Queue Command and IO tracing | 0x3074 | 0x300b | | 22 | * | Queue Command and IO tracing | 0x3074 | 0x300b | |
diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index c56cdb35f3ed..a3685b683688 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c | |||
@@ -2053,6 +2053,14 @@ qla2x00_update_fw_options(scsi_qla_host_t *vha) | |||
2053 | if (IS_QLA6312(ha)) | 2053 | if (IS_QLA6312(ha)) |
2054 | ha->fw_options[2] |= BIT_13; | 2054 | ha->fw_options[2] |= BIT_13; |
2055 | 2055 | ||
2056 | /* Set Retry FLOGI in case of P2P connection */ | ||
2057 | if (ha->operating_mode == P2P) { | ||
2058 | ha->fw_options[2] |= BIT_3; | ||
2059 | ql_dbg(ql_dbg_disc, vha, 0x2100, | ||
2060 | "(%s): Setting FLOGI retry BIT in fw_options[2]: 0x%x\n", | ||
2061 | __func__, ha->fw_options[2]); | ||
2062 | } | ||
2063 | |||
2056 | /* Update firmware options. */ | 2064 | /* Update firmware options. */ |
2057 | qla2x00_set_fw_options(vha, ha->fw_options); | 2065 | qla2x00_set_fw_options(vha, ha->fw_options); |
2058 | } | 2066 | } |
@@ -2070,6 +2078,14 @@ qla24xx_update_fw_options(scsi_qla_host_t *vha) | |||
2070 | if (ql2xfwholdabts) | 2078 | if (ql2xfwholdabts) |
2071 | ha->fw_options[3] |= BIT_12; | 2079 | ha->fw_options[3] |= BIT_12; |
2072 | 2080 | ||
2081 | /* Set Retry FLOGI in case of P2P connection */ | ||
2082 | if (ha->operating_mode == P2P) { | ||
2083 | ha->fw_options[2] |= BIT_3; | ||
2084 | ql_dbg(ql_dbg_disc, vha, 0x2101, | ||
2085 | "(%s): Setting FLOGI retry BIT in fw_options[2]: 0x%x\n", | ||
2086 | __func__, ha->fw_options[2]); | ||
2087 | } | ||
2088 | |||
2073 | /* Update Serial Link options. */ | 2089 | /* Update Serial Link options. */ |
2074 | if ((le16_to_cpu(ha->fw_seriallink_options24[0]) & BIT_0) == 0) | 2090 | if ((le16_to_cpu(ha->fw_seriallink_options24[0]) & BIT_0) == 0) |
2075 | return; | 2091 | return; |
@@ -6513,6 +6529,14 @@ qla81xx_update_fw_options(scsi_qla_host_t *vha) | |||
6513 | if (ql2xfwholdabts) | 6529 | if (ql2xfwholdabts) |
6514 | ha->fw_options[3] |= BIT_12; | 6530 | ha->fw_options[3] |= BIT_12; |
6515 | 6531 | ||
6532 | /* Set Retry FLOGI in case of P2P connection */ | ||
6533 | if (ha->operating_mode == P2P) { | ||
6534 | ha->fw_options[2] |= BIT_3; | ||
6535 | ql_dbg(ql_dbg_disc, vha, 0x2103, | ||
6536 | "(%s): Setting FLOGI retry BIT in fw_options[2]: 0x%x\n", | ||
6537 | __func__, ha->fw_options[2]); | ||
6538 | } | ||
6539 | |||
6516 | if (!ql2xetsenable) | 6540 | if (!ql2xetsenable) |
6517 | goto out; | 6541 | goto out; |
6518 | 6542 | ||