qla2xxx: ISPFx00 unexpected resets during adapter boot sequence.
authorJan Kulich <jan.kulich@qlogic.com>
Thu, 25 Sep 2014 09:16:45 +0000 (05:16 -0400)
committerChristoph Hellwig <hch@lst.de>
Thu, 25 Sep 2014 12:25:02 +0000 (14:25 +0200)
Signed-off-by: Jan Kulich <jan.kulich@qlogic.com>
Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/qla2xxx/qla_mr.c

index 620e60a7a0eeee66ec32951fa6d216f441cb3890..c54a53de351bda4edc82561321e6617128d016c4 100644 (file)
@@ -1551,7 +1551,10 @@ qlafx00_timer_routine(scsi_qla_host_t *vha)
                        ha->mr.fw_reset_timer_tick =
                            QLAFX00_MAX_RESET_INTERVAL;
                }
-               ha->mr.old_aenmbx0_state = aenmbx0;
+               if (ha->mr.old_aenmbx0_state != aenmbx0) {
+                       ha->mr.old_aenmbx0_state = aenmbx0;
+                       ha->mr.fw_reset_timer_tick = QLAFX00_RESET_INTERVAL;
+               }
                ha->mr.fw_reset_timer_tick--;
        }
        if (test_bit(FX00_CRITEMP_RECOVERY, &vha->dpc_flags)) {