Commit 40f3862b authored by Joe Carnuccio's avatar Joe Carnuccio Committed by Martin K. Petersen

qla2xxx: Let DPORT be enabled purely by nvram.

Signed-off-by: default avatarJoe Carnuccio <joe.carnuccio@qlogic.com>
Signed-off-by: default avatarHimanshu Madhani <himanshu.madhani@qlogic.com>
Reviewed-by: default avatarHannes Reinecke <hare@suse.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 8437dda0
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
* ---------------------------------------------------------------------- * ----------------------------------------------------------------------
* | Level | Last Value Used | Holes | * | Level | Last Value Used | Holes |
* ---------------------------------------------------------------------- * ----------------------------------------------------------------------
* | Module Init and Probe | 0x018f | 0x0146 | * | Module Init and Probe | 0x0191 | 0x0146 |
* | | | 0x015b-0x0160 | * | | | 0x015b-0x0160 |
* | | | 0x016e | * | | | 0x016e |
* | Mailbox commands | 0x1196 | | * | Mailbox commands | 0x1196 | |
......
...@@ -3029,6 +3029,7 @@ struct qla_hw_data { ...@@ -3029,6 +3029,7 @@ struct qla_hw_data {
uint32_t mr_reset_hdlr_active:1; uint32_t mr_reset_hdlr_active:1;
uint32_t mr_intr_valid:1; uint32_t mr_intr_valid:1;
uint32_t dport_enabled:1;
uint32_t fawwpn_enabled:1; uint32_t fawwpn_enabled:1;
uint32_t exlogins_enabled:1; uint32_t exlogins_enabled:1;
uint32_t exchoffld_enabled:1; uint32_t exchoffld_enabled:1;
......
...@@ -2288,13 +2288,13 @@ qla2x00_init_rings(scsi_qla_host_t *vha) ...@@ -2288,13 +2288,13 @@ qla2x00_init_rings(scsi_qla_host_t *vha)
mid_init_cb->options = cpu_to_le16(BIT_1); mid_init_cb->options = cpu_to_le16(BIT_1);
mid_init_cb->init_cb.execution_throttle = mid_init_cb->init_cb.execution_throttle =
cpu_to_le16(ha->cur_fw_xcb_count); cpu_to_le16(ha->cur_fw_xcb_count);
/* D-Port Status */ ha->flags.dport_enabled =
if (IS_DPORT_CAPABLE(ha)) (mid_init_cb->init_cb.firmware_options_1 & BIT_7) != 0;
mid_init_cb->init_cb.firmware_options_1 |= ql_dbg(ql_dbg_init, vha, 0x0191, "DPORT Support: %s.\n",
cpu_to_le16(BIT_7); (ha->flags.dport_enabled) ? "enabled" : "disabled");
/* Enable FA-WWPN */ /* FA-WWPN Status */
ha->flags.fawwpn_enabled = ha->flags.fawwpn_enabled =
(mid_init_cb->init_cb.firmware_options_1 & BIT_6) ? 1 : 0; (mid_init_cb->init_cb.firmware_options_1 & BIT_6) != 0;
ql_dbg(ql_dbg_init, vha, 0x0141, "FA-WWPN Support: %s.\n", ql_dbg(ql_dbg_init, vha, 0x0141, "FA-WWPN Support: %s.\n",
(ha->flags.fawwpn_enabled) ? "enabled" : "disabled"); (ha->flags.fawwpn_enabled) ? "enabled" : "disabled");
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment