Commit 5341e868 authored by Andrew Vasquez's avatar Andrew Vasquez Committed by James Bottomley

[SCSI] qla2xxx: Add support for alternate WWN NVRAM setting.

Signed-off-by: default avatarAndrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent fd0e7e4d
...@@ -1532,6 +1532,12 @@ qla2x00_nvram_config(scsi_qla_host_t *ha) ...@@ -1532,6 +1532,12 @@ qla2x00_nvram_config(scsi_qla_host_t *ha)
while (cnt--) while (cnt--)
*dptr1++ = *dptr2++; *dptr1++ = *dptr2++;
/* Use alternate WWN? */
if (nv->host_p[1] & BIT_7) {
memcpy(icb->node_name, nv->alternate_node_name, WWN_SIZE);
memcpy(icb->port_name, nv->alternate_port_name, WWN_SIZE);
}
/* Prepare nodename */ /* Prepare nodename */
if ((icb->firmware_options[1] & BIT_6) == 0) { if ((icb->firmware_options[1] & BIT_6) == 0) {
/* /*
...@@ -3370,6 +3376,12 @@ qla24xx_nvram_config(scsi_qla_host_t *ha) ...@@ -3370,6 +3376,12 @@ qla24xx_nvram_config(scsi_qla_host_t *ha)
} else } else
strcpy(ha->model_number, "QLA2462"); strcpy(ha->model_number, "QLA2462");
/* Use alternate WWN? */
if (nv->host_p & __constant_cpu_to_le32(BIT_15)) {
memcpy(icb->node_name, nv->alternate_node_name, WWN_SIZE);
memcpy(icb->port_name, nv->alternate_port_name, WWN_SIZE);
}
/* Prepare nodename */ /* Prepare nodename */
if ((icb->firmware_options_1 & __constant_cpu_to_le32(BIT_14)) == 0) { if ((icb->firmware_options_1 & __constant_cpu_to_le32(BIT_14)) == 0) {
/* /*
......
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