]> git.karo-electronics.de Git - linux-beck.git/commitdiff
qla2xxx: ISPFX00 avoid writing semaphore register in request_irqs().
authorJoe Carnuccio <joe.carnuccio@qlogic.com>
Thu, 25 Sep 2014 09:16:42 +0000 (05:16 -0400)
committerChristoph Hellwig <hch@lst.de>
Thu, 25 Sep 2014 12:25:02 +0000 (14:25 +0200)
Semaphore register does not exist for ISPFx00.

Signed-off-by: Joe Carnuccio <joe.carnuccio@qlogic.com>
Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/qla2xxx/qla_isr.c

index a0992bfab7bf470caf518ca5c62c27e64a98811f..223c1a89af5cb3acb66c0a5d95b7905af9183a0e 100644 (file)
@@ -3098,10 +3098,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: