]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[SCSI] qla2xxx: Only enable link up on the correct interrupt event.
authorChad Dupuis <chad.dupuis@qlogic.com>
Wed, 22 Aug 2012 18:21:09 +0000 (14:21 -0400)
committerJames Bottomley <JBottomley@Parallels.com>
Fri, 14 Sep 2012 17:28:49 +0000 (18:28 +0100)
Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: Chad Dupuis <chad.dupuis@qlogic.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/qla2xxx/qla_isr.c

index e6a01e4d115038e850fb57b3d89fb88c67d37933..8f37531b9bf46784df2484ec5bd6615b950564ea 100644 (file)
@@ -843,8 +843,7 @@ skip_rio:
                 * it.  Otherwise ignore it and Wait for RSCN to come in.
                 */
                atomic_set(&vha->loop_down_timer, 0);
-               if (atomic_read(&vha->loop_state) != LOOP_DOWN &&
-                   atomic_read(&vha->loop_state) != LOOP_DEAD) {
+               if (mb[1] != 0xffff || (mb[2] != 0x6 && mb[2] != 0x4)) {
                        ql_dbg(ql_dbg_async, vha, 0x5011,
                            "Asynchronous PORT UPDATE ignored %04x/%04x/%04x.\n",
                            mb[1], mb[2], mb[3]);