Skip to content

Commit 5341e86

Browse files
avasquez01James Bottomley
authored andcommitted
[SCSI] qla2xxx: Add support for alternate WWN NVRAM setting.
Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
1 parent fd0e7e4 commit 5341e86

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

drivers/scsi/qla2xxx/qla_init.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1532,6 +1532,12 @@ qla2x00_nvram_config(scsi_qla_host_t *ha)
15321532
while (cnt--)
15331533
*dptr1++ = *dptr2++;
15341534

1535+
/* Use alternate WWN? */
1536+
if (nv->host_p[1] & BIT_7) {
1537+
memcpy(icb->node_name, nv->alternate_node_name, WWN_SIZE);
1538+
memcpy(icb->port_name, nv->alternate_port_name, WWN_SIZE);
1539+
}
1540+
15351541
/* Prepare nodename */
15361542
if ((icb->firmware_options[1] & BIT_6) == 0) {
15371543
/*
@@ -3370,6 +3376,12 @@ qla24xx_nvram_config(scsi_qla_host_t *ha)
33703376
} else
33713377
strcpy(ha->model_number, "QLA2462");
33723378

3379+
/* Use alternate WWN? */
3380+
if (nv->host_p & __constant_cpu_to_le32(BIT_15)) {
3381+
memcpy(icb->node_name, nv->alternate_node_name, WWN_SIZE);
3382+
memcpy(icb->port_name, nv->alternate_port_name, WWN_SIZE);
3383+
}
3384+
33733385
/* Prepare nodename */
33743386
if ((icb->firmware_options_1 & __constant_cpu_to_le32(BIT_14)) == 0) {
33753387
/*

0 commit comments

Comments
 (0)