Skip to content

Commit 5fa8b57

Browse files
Sarang RadkeJames Bottomley
authored andcommitted
[SCSI] qla4xxx: Use polling mode for disable interrupt mailbox completion
Disable Interrupt MBX completion will disable the interrupt on successful completion. Fixed the bug where driver was waiting for Interrupt to come in for its completion. Now driver will poll for disable interrupt MBX completion. Signed-off-by: Sarang Radke <sarang.radke@qlogic.com> Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com> Reviewed-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
1 parent 3dea642 commit 5fa8b57

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/scsi/qla4xxx/ql4_nx.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2304,14 +2304,13 @@ qla4_8xxx_enable_intrs(struct scsi_qla_host *ha)
23042304
void
23052305
qla4_8xxx_disable_intrs(struct scsi_qla_host *ha)
23062306
{
2307-
if (test_bit(AF_INTERRUPTS_ON, &ha->flags))
2307+
if (test_and_clear_bit(AF_INTERRUPTS_ON, &ha->flags))
23082308
qla4_8xxx_mbx_intr_disable(ha);
23092309

23102310
spin_lock_irq(&ha->hardware_lock);
23112311
/* BIT 10 - set */
23122312
qla4_8xxx_wr_32(ha, ha->nx_legacy_intr.tgt_mask_reg, 0x0400);
23132313
spin_unlock_irq(&ha->hardware_lock);
2314-
clear_bit(AF_INTERRUPTS_ON, &ha->flags);
23152314
}
23162315

23172316
struct ql4_init_msix_entry {

0 commit comments

Comments
 (0)