From: Joe Carnuccio <joe.carnuc...@qlogic.com>

Semaphore register does not exist for ISPFx00.

Signed-off-by: Joe Carnuccio <joe.carnuc...@qlogic.com>
Signed-off-by: Saurav Kashyap <saurav.kash...@qlogic.com>
---
 drivers/scsi/qla2xxx/qla_isr.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/scsi/qla2xxx/qla_isr.c b/drivers/scsi/qla2xxx/qla_isr.c
index 550a4a3..6b2fe18 100644
--- a/drivers/scsi/qla2xxx/qla_isr.c
+++ b/drivers/scsi/qla2xxx/qla_isr.c
@@ -3103,10 +3103,11 @@ skip_msi:
        }
 
 clear_risc_ints:
+       if (IS_FWI2_CAPABLE(ha) || IS_QLAFX00(ha))
+               goto fail;
 
        spin_lock_irq(&ha->hardware_lock);
-       if (!IS_FWI2_CAPABLE(ha))
-               WRT_REG_WORD(&reg->isp.semaphore, 0);
+       WRT_REG_WORD(&reg->isp.semaphore, 0);
        spin_unlock_irq(&ha->hardware_lock);
 
 fail:
-- 
1.7.7

--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to