From: Chad Dupuis Date: Wed, 22 Aug 2012 18:21:09 +0000 (-0400) Subject: [SCSI] qla2xxx: Only enable link up on the correct interrupt event. X-Git-Tag: next-20120917~76^2^2~27 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=40429d3365b49eedaec0b92ce8b4633a08197ba3;p=karo-tx-linux.git [SCSI] qla2xxx: Only enable link up on the correct interrupt event. Signed-off-by: Giridhar Malavali Signed-off-by: Chad Dupuis Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/qla2xxx/qla_isr.c b/drivers/scsi/qla2xxx/qla_isr.c index e6a01e4d1150..8f37531b9bf4 100644 --- a/drivers/scsi/qla2xxx/qla_isr.c +++ b/drivers/scsi/qla2xxx/qla_isr.c @@ -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]);