Skip to content

Commit b6511d9

Browse files
Armen BaloyanJames Bottomley
authored andcommitted
[SCSI] qla2xxx: Set factory reset recovery timeout to 10 min. for ISPFX00.
Signed-off-by: Armen Baloyan <armen.baloyan@qlogic.com> Acked-by: Srinivasa Rao <srinivasa.rao@qlogic.com> Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
1 parent da9b1d5 commit b6511d9

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

‎drivers/scsi/qla2xxx/qla_def.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -806,6 +806,7 @@ struct mbx_cmd_32 {
806806
#define MBA_MIRROR_LUN_CHANGE 0x8402 /* Mirror LUN State Change
807807
Notification */
808808
#define MBA_FW_POLL_STATE 0x8600 /* Firmware in poll diagnostic state */
809+
#define MBA_FW_RESET_FCT 0x8502 /* Firmware reset factory defaults */
809810

810811
/* 83XX FCoE specific */
811812
#define MBA_IDC_AEN 0x8200 /* FCoE: NIC Core state change AEN */

‎drivers/scsi/qla2xxx/qla_mr.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1539,6 +1539,9 @@ qlafx00_timer_routine(scsi_qla_host_t *vha)
15391539
} else if ((aenmbx0 & 0xFF00) == MBA_FW_POLL_STATE) {
15401540
ha->mr.fw_reset_timer_tick =
15411541
QLAFX00_MAX_RESET_INTERVAL;
1542+
} else if (aenmbx0 == MBA_FW_RESET_FCT) {
1543+
ha->mr.fw_reset_timer_tick =
1544+
QLAFX00_MAX_RESET_INTERVAL;
15421545
}
15431546
ha->mr.old_aenmbx0_state = aenmbx0;
15441547
ha->mr.fw_reset_timer_tick--;

0 commit comments

Comments
 (0)